aboutsummaryrefslogtreecommitdiffstats
path: root/src/modules/dcc/requests.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/dcc/requests.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/dcc/requests.cpp')
-rw-r--r--src/modules/dcc/requests.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/modules/dcc/requests.cpp b/src/modules/dcc/requests.cpp
index d27ea9b65..b48f14ce2 100644
--- a/src/modules/dcc/requests.cpp
+++ b/src/modules/dcc/requests.cpp
@@ -307,7 +307,7 @@ static void dccModuleParseDccChat(KviDccRequest * dcc)
}
d->setZeroPortRequestTag(dcc->szParam4.ptr());
QString tmp;
- if(!dcc_kvs_get_listen_ip_address(0, d->console(), tmp))
+ if(!dcc_kvs_get_listen_ip_address(nullptr, d->console(), tmp))
d->szListenIp = "0.0.0.0";
else
d->szListenIp = tmp;
@@ -521,7 +521,7 @@ static void dccModuleParseDccSend(KviDccRequest * dcc)
}
d->setZeroPortRequestTag(dcc->szParam5.ptr());
QString tmp;
- if(!dcc_kvs_get_listen_ip_address(0, d->console(), tmp))
+ if(!dcc_kvs_get_listen_ip_address(nullptr, d->console(), tmp))
d->szListenIp = "0.0.0.0";
else
d->szListenIp = QString(tmp);
@@ -706,7 +706,7 @@ static void dccModuleParseDccRecv(KviDccRequest * dcc)
d->bActive = true;
dcc_module_set_dcc_type(d, "SEND");
d->triggerCreationEvent();
- g_pDccBroker->sendFileExecute(0, d);
+ g_pDccBroker->sendFileExecute(nullptr, d);
return;
}
@@ -801,7 +801,7 @@ static void dccModuleParseDccRSend(KviDccRequest * dcc)
d->szIp = __tr2qs_ctx("(unknown)", "dcc");
d->szPort = d->szIp;
QString tmp;
- if(!dcc_kvs_get_listen_ip_address(0, d->console(), tmp))
+ if(!dcc_kvs_get_listen_ip_address(nullptr, d->console(), tmp))
{
d->console()->output(KVI_OUT_DCCMSG,
__tr2qs_ctx("No suitable interface to listen on, trying to continue anyway...", "dcc"));
@@ -949,7 +949,7 @@ static void dccModuleParseDccGet(KviDccRequest * dcc)
dcc_fill_local_nick_user_host(d, dcc);
QString tmp;
- if(!dcc_kvs_get_listen_ip_address(0, d->console(), tmp))
+ if(!dcc_kvs_get_listen_ip_address(nullptr, d->console(), tmp))
{
d->console()->output(KVI_OUT_DCCMSG,
__tr2qs_ctx("No suitable interface to listen on, trying to continue anyway...", "dcc"));
@@ -992,7 +992,7 @@ static void dccModuleParseDccGet(KviDccRequest * dcc)
&(o->absFilePath()), &(d->szType));
}
d->triggerCreationEvent();
- g_pDccBroker->sendFileExecute(0, d);
+ g_pDccBroker->sendFileExecute(nullptr, d);
}
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////