summaryrefslogtreecommitdiff
path: root/protocols/VKontakte
diff options
context:
space:
mode:
Diffstat (limited to 'protocols/VKontakte')
-rw-r--r--protocols/VKontakte/src/misc.cpp2
-rw-r--r--protocols/VKontakte/src/vk_captcha.cpp2
-rw-r--r--protocols/VKontakte/src/vk_files.cpp6
-rw-r--r--protocols/VKontakte/src/vk_proto.cpp2
-rw-r--r--protocols/VKontakte/src/vk_status.cpp2
5 files changed, 7 insertions, 7 deletions
diff --git a/protocols/VKontakte/src/misc.cpp b/protocols/VKontakte/src/misc.cpp
index 8821dad4fb..67c1ff428a 100644
--- a/protocols/VKontakte/src/misc.cpp
+++ b/protocols/VKontakte/src/misc.cpp
@@ -88,7 +88,7 @@ HANDLE GetIconHandle(int iCommand)
if (iconList[i].defIconID == iCommand)
return iconList[i].hIcolib;
- return 0;
+ return nullptr;
}
/////////////////////////////////////////////////////////////////////////////////////////
diff --git a/protocols/VKontakte/src/vk_captcha.cpp b/protocols/VKontakte/src/vk_captcha.cpp
index f2da23f78e..6eedc95793 100644
--- a/protocols/VKontakte/src/vk_captcha.cpp
+++ b/protocols/VKontakte/src/vk_captcha.cpp
@@ -27,7 +27,7 @@ bool CVkProto::RunCaptchaForm(LPCSTR szUrl, CMStringA &result)
debugLogA("CVkProto::RunCaptchaForm: reading picture from %s", szUrl);
result.Empty();
- CAPTCHA_FORM_PARAMS param = { 0 };
+ CAPTCHA_FORM_PARAMS param = {};
if (getBool("UseCaptchaAssistant", false)) {
CMStringA szCaptchaAssistant(FORMAT, "http://ca.tiflohelp.ru/?link=%s", ptrA(ExpUrlEncode(szUrl)));
Utils_OpenUrl(szCaptchaAssistant);
diff --git a/protocols/VKontakte/src/vk_files.cpp b/protocols/VKontakte/src/vk_files.cpp
index 0df2946cf3..8e5dcc473a 100644
--- a/protocols/VKontakte/src/vk_files.cpp
+++ b/protocols/VKontakte/src/vk_files.cpp
@@ -23,7 +23,7 @@ HANDLE CVkProto::SendFile(MCONTACT hContact, const wchar_t *desc, wchar_t **file
LONG userID = getDword(hContact, "ID", VK_INVALID_USER);
if (!IsOnline() || ((userID == VK_INVALID_USER || userID == VK_FEED_USER) && !isChatRoom(hContact)) || !files || !files[0])
- return (HANDLE)0;
+ return (HANDLE)nullptr;
CVkFileUploadParam *fup = new CVkFileUploadParam(hContact, desc, files);
@@ -31,7 +31,7 @@ HANDLE CVkProto::SendFile(MCONTACT hContact, const wchar_t *desc, wchar_t **file
if (!fup->IsAccess()) {
SendFileFiled(fup, VKERR_FILE_NOT_EXIST);
- return (HANDLE)0;
+ return (HANDLE)nullptr;
}
AsyncHttpRequest *pReq;
@@ -47,7 +47,7 @@ HANDLE CVkProto::SendFile(MCONTACT hContact, const wchar_t *desc, wchar_t **file
break;
default:
SendFileFiled(fup, VKERR_FTYPE_NOT_SUPPORTED);
- return (HANDLE)0;
+ return (HANDLE)nullptr;
}
pReq->pUserInfo = fup;
Push(pReq);
diff --git a/protocols/VKontakte/src/vk_proto.cpp b/protocols/VKontakte/src/vk_proto.cpp
index 99a0cdf0d0..85b403de7a 100644
--- a/protocols/VKontakte/src/vk_proto.cpp
+++ b/protocols/VKontakte/src/vk_proto.cpp
@@ -159,7 +159,7 @@ void CVkProto::InitMenus()
CreateProtoService(PS_MARKMESSAGESASREAD, &CVkProto::SvcMarkMessagesAsRead);
for (int i = 0; i < PMI_COUNT; i++)
- m_hProtoMenuItems[i] = 0;
+ m_hProtoMenuItems[i] = nullptr;
CMenuItem mi;
mi.root = Menu_GetProtocolRoot(this);
diff --git a/protocols/VKontakte/src/vk_status.cpp b/protocols/VKontakte/src/vk_status.cpp
index f26804e0ea..cd5df9ff05 100644
--- a/protocols/VKontakte/src/vk_status.cpp
+++ b/protocols/VKontakte/src/vk_status.cpp
@@ -47,7 +47,7 @@ int CVkProto::SetStatus(int iNewStatus)
ProtoBroadcastAck(0, ACKTYPE_STATUS, ACKRESULT_SUCCESS, (HANDLE)oldStatus, m_iStatus);
debugLogA("CVkProto::SetStatus (2) iNewStatus = %d, m_iStatus = %d, m_iDesiredStatus = %d oldStatus = %d",
iNewStatus, m_iStatus, m_iDesiredStatus, oldStatus);
- m_hWorkerThread = ForkThreadEx(&CVkProto::WorkerThread, 0, nullptr);
+ m_hWorkerThread = ForkThreadEx(&CVkProto::WorkerThread, nullptr, nullptr);
}
else if (IsOnline()) {
debugLogA("CVkProto::SetStatus (3) iNewStatus = %d, m_iStatus = %d, m_iDesiredStatus = %d oldStatus = %d",