Replace auto_ptr

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
(cherry picked from commit 4484e51ca6)
pull/478/head
Michele Calgaro 4 months ago
parent 1c65be77cd
commit 71079cacc2
Signed by: MicheleC
GPG Key ID: 2A75B7CA8ADED5CF

@ -71,7 +71,6 @@ using KioSMTP::TransactionState;
#include <tqcstring.h> #include <tqcstring.h>
#include <memory> #include <memory>
using std::auto_ptr;
#include <ctype.h> #include <ctype.h>
#include <stdlib.h> #include <stdlib.h>
@ -446,8 +445,8 @@ void SMTPProtocol::queueCommand( int type ) {
} }
bool SMTPProtocol::execute( int type, TransactionState * ts ) { bool SMTPProtocol::execute( int type, TransactionState * ts ) {
auto_ptr<Command> cmd( Command::createSimpleCommand( type, this ) ); std::unique_ptr<Command> cmd( Command::createSimpleCommand( type, this ) );
kdFatal( !cmd.get(), 7112 ) << "Command::createSimpleCommand( " << type << " ) returned null!" << endl; kdFatal( !cmd, 7112 ) << "Command::createSimpleCommand( " << type << " ) returned null!" << endl;
return execute( cmd.get(), ts ); return execute( cmd.get(), ts );
} }

Loading…
Cancel
Save