summaryrefslogtreecommitdiffstats
path: root/tdeioslave/smtp/smtp.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tdeioslave/smtp/smtp.cpp')
-rw-r--r--tdeioslave/smtp/smtp.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/tdeioslave/smtp/smtp.cpp b/tdeioslave/smtp/smtp.cpp
index 00dff3684..76e79f8a5 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>
@@ -91,7 +90,7 @@ using std::auto_ptr;
extern "C" {
- KDE_EXPORT int kdemain(int argc, char **argv);
+ TDE_EXPORT int kdemain(int argc, char **argv);
}
int kdemain(int argc, char **argv)
@@ -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 );
}