Commit 87c7ce3d authored by Laurent Montel's avatar Laurent Montel 😁

use nullptr

parent 9ad6634e
......@@ -100,17 +100,17 @@ public:
static Command *createSimpleCommand(int which, SMTPSessionInterface *smtp);
virtual QByteArray nextCommandLine(TransactionState *ts = 0) = 0;
virtual QByteArray nextCommandLine(TransactionState *ts = nullptr) = 0;
/* Reimplement this if your @ref #nextCommandLine() implementation
changes state other than @ref mComplete. The default
implementation just resets @ref mComplete to false. */
virtual void ungetCommandLine(const QByteArray &cmdLine, TransactionState *ts = 0);
virtual void ungetCommandLine(const QByteArray &cmdLine, TransactionState *ts = nullptr);
/* Reimplement this if your command need more sophisicated
response processing than just checking for @ref
Response::isOk(). The default implementation sets @ref
mComplete to true, @ref mNeedResponse to false and returns
whether the response isOk(). */
virtual bool processResponse(const Response &response, TransactionState *ts = 0);
virtual bool processResponse(const Response &response, TransactionState *ts = nullptr);
virtual bool doNotExecute(const TransactionState *ts) const
{
......
......@@ -70,9 +70,9 @@ protected:
void smtp_close(bool nice = true);
/** Execute command @p cmd */
bool execute(KioSMTP::Command *cmd, KioSMTP::TransactionState *ts = 0);
bool execute(KioSMTP::Command *cmd, KioSMTP::TransactionState *ts = nullptr);
/** Execute a command of type @p type */
bool execute(int type, KioSMTP::TransactionState *ts = 0);
bool execute(int type, KioSMTP::TransactionState *ts = nullptr);
/** Execute the queued commands. If something goes horribly wrong
(sending command oline fails, getting response fails or some
command raises the failedFatally() flag in @p ts, shuts down the
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment