summaryrefslogtreecommitdiffstats
path: root/tdeioslave
diff options
context:
space:
mode:
authorMichele Calgaro <[email protected]>2024-01-21 00:00:26 +0900
committerMichele Calgaro <[email protected]>2024-01-23 09:51:18 +0900
commit71079cacc232b2d895d8a6bb15448464e489d850 (patch)
tree39efdd451cf82729ccd21a5d103df4d62ce59374 /tdeioslave
parent1c65be77cd84b454f3fe69f211849a712ad99ed0 (diff)
downloadtdebase-71079cacc232b2d895d8a6bb15448464e489d850.tar.gz
tdebase-71079cacc232b2d895d8a6bb15448464e489d850.zip
Replace auto_ptr
Signed-off-by: Michele Calgaro <[email protected]> (cherry picked from commit 4484e51ca69d3080fac8692a7a203c49dc47ab1e)
Diffstat (limited to 'tdeioslave')
-rw-r--r--tdeioslave/smtp/smtp.cpp5
1 files changed, 2 insertions, 3 deletions
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 <tqcstring.h>
#include <memory>
-using std::auto_ptr;
#include <ctype.h>
#include <stdlib.h>
@@ -446,8 +445,8 @@ void SMTPProtocol::queueCommand( int type ) {
}
bool SMTPProtocol::execute( int type, TransactionState * ts ) {
- auto_ptr<Command> cmd( Command::createSimpleCommand( type, this ) );
- kdFatal( !cmd.get(), 7112 ) << "Command::createSimpleCommand( " << type << " ) returned null!" << endl;
+ std::unique_ptr<Command> cmd( Command::createSimpleCommand( type, this ) );
+ kdFatal( !cmd, 7112 ) << "Command::createSimpleCommand( " << type << " ) returned null!" << endl;
return execute( cmd.get(), ts );
}