From 4484e51ca69d3080fac8692a7a203c49dc47ab1e Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Sun, 21 Jan 2024 00:00:26 +0900 Subject: Replace auto_ptr Signed-off-by: Michele Calgaro --- tdeioslave/smtp/smtp.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'tdeioslave') diff --git a/tdeioslave/smtp/smtp.cpp b/tdeioslave/smtp/smtp.cpp index 00dff3684..ba009c1c5 100644 --- a/tdeioslave/smtp/smtp.cpp +++ b/tdeioslave/smtp/smtp.cpp @@ -71,7 +71,6 @@ using KioSMTP::TransactionState; #include #include -using std::auto_ptr; #include #include @@ -446,8 +445,8 @@ void SMTPProtocol::queueCommand( int type ) { } bool SMTPProtocol::execute( int type, TransactionState * ts ) { - auto_ptr cmd( Command::createSimpleCommand( type, this ) ); - kdFatal( !cmd.get(), 7112 ) << "Command::createSimpleCommand( " << type << " ) returned null!" << endl; + std::unique_ptr cmd( Command::createSimpleCommand( type, this ) ); + kdFatal( !cmd, 7112 ) << "Command::createSimpleCommand( " << type << " ) returned null!" << endl; return execute( cmd.get(), ts ); } -- cgit v1.2.1