aboutsummaryrefslogtreecommitdiffstats
path: root/src/modules/objects/KvsObject_ftp.cpp
diff options
context:
space:
mode:
authorGravatar Alexey Sokolov2016-04-30 18:23:42 +0100
committerGravatar Alexey Sokolov2016-04-30 18:50:44 +0100
commit505d0768f8392e3c4775425dd97f41e1c829ef44 (patch)
tree55dfa35f2e180b4186baf00ffbfd2ee38c0f1c18 /src/modules/objects/KvsObject_ftp.cpp
parentUpdate my clang-format to 3.8.0 (diff)
downloadKVIrc-505d0768f8392e3c4775425dd97f41e1c829ef44.tar.gz
KVIrc-505d0768f8392e3c4775425dd97f41e1c829ef44.tar.bz2
KVIrc-505d0768f8392e3c4775425dd97f41e1c829ef44.zip
Apply clang-tidy: modernize-use-nullptr
Diffstat (limited to 'src/modules/objects/KvsObject_ftp.cpp')
-rw-r--r--src/modules/objects/KvsObject_ftp.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/modules/objects/KvsObject_ftp.cpp b/src/modules/objects/KvsObject_ftp.cpp
index 183edcdb0..54bd9a990 100644
--- a/src/modules/objects/KvsObject_ftp.cpp
+++ b/src/modules/objects/KvsObject_ftp.cpp
@@ -291,7 +291,7 @@ void KvsObject_ftp::slotCommandFinished(int iId, bool bError)
lParams.append(new KviKvsVariant(bError));
if(bError)
lParams.append(new KviKvsVariant(m_pFtp->errorString()));
- callFunction(this, "commandFinishedEvent", 0, &lParams);
+ callFunction(this, "commandFinishedEvent", nullptr, &lParams);
}
void KvsObject_ftp::slotCommandStarted(int)
@@ -303,7 +303,7 @@ void KvsObject_ftp::slotDataTransferProgress(qint64 done, qint64 total)
KviKvsVariantList lParams;
lParams.append(new KviKvsVariant((kvs_int_t)done));
lParams.append(new KviKvsVariant((kvs_int_t)total));
- callFunction(this, "dataTransferProgressEvent", 0, &lParams);
+ callFunction(this, "dataTransferProgressEvent", nullptr, &lParams);
}
KVSO_CLASS_FUNCTION(ftp, dataTransferProgressEvent)
@@ -320,7 +320,7 @@ void KvsObject_ftp::slotListInfo(const QUrlInfo & i)
{
KviKvsVariantList lParams;
lParams.append(new KviKvsVariant(i.name()));
- callFunction(this, "listInfoEvent", 0, &lParams);
+ callFunction(this, "listInfoEvent", nullptr, &lParams);
}
KVSO_CLASS_FUNCTION(ftp, listInfoEvent)
@@ -354,7 +354,7 @@ void KvsObject_ftp::slotStateChanged(int state)
szState = "Closing";
KviKvsVariantList lParams;
lParams.append(new KviKvsVariant(szState));
- callFunction(this, "stateChangedEvent", 0, &lParams);
+ callFunction(this, "stateChangedEvent", nullptr, &lParams);
}
KVSO_CLASS_FUNCTION(ftp, stateChangedEvent)