diff options
author | ElzorFox <elzorfox@ya.ru> | 2017-09-07 14:13:13 +0500 |
---|---|---|
committer | ElzorFox <elzorfox@ya.ru> | 2017-09-07 14:13:13 +0500 |
commit | d8beb3088e4394614f48636416cc363227194a24 (patch) | |
tree | fd867681acec263b5396f0fda10cc1edd442ae28 /protocols/VKontakte/src/vk_struct.cpp | |
parent | e7179d7a6ec6299a11e0f51e6c92ae5ba22144d2 (diff) |
VKontakte: code cleaning
Diffstat (limited to 'protocols/VKontakte/src/vk_struct.cpp')
-rw-r--r-- | protocols/VKontakte/src/vk_struct.cpp | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/protocols/VKontakte/src/vk_struct.cpp b/protocols/VKontakte/src/vk_struct.cpp index 793e3c0833..750b0bc5b8 100644 --- a/protocols/VKontakte/src/vk_struct.cpp +++ b/protocols/VKontakte/src/vk_struct.cpp @@ -26,12 +26,12 @@ AsyncHttpRequest::AsyncHttpRequest() cbSize = sizeof(NETLIBHTTPREQUEST);
m_bApiReq = true;
AddHeader("Connection", "keep-alive");
- pUserInfo = NULL;
+ pUserInfo = nullptr;
m_iRetry = MAX_RETRIES;
m_iErrorCode = 0;
bNeedsRestart = false;
bIsMainConn = false;
- m_pFunc = NULL;
+ m_pFunc = nullptr;
bExpUrlEncode = true;
m_reqNum = ::InterlockedIncrement(&m_reqCount);
m_priority = rpLow;
@@ -61,7 +61,7 @@ AsyncHttpRequest::AsyncHttpRequest(CVkProto *ppro, int iRequestType, LPCSTR _url requestType = iRequestType;
m_pFunc = pFunc;
- pUserInfo = NULL;
+ pUserInfo = nullptr;
m_iRetry = MAX_RETRIES;
m_iErrorCode = 0;
bNeedsRestart = false;
@@ -102,8 +102,8 @@ CVkFileUploadParam::CVkFileUploadParam(MCONTACT _hContact, const wchar_t *_desc, hContact(_hContact),
Desc(mir_wstrdup(_desc)),
FileName(mir_wstrdup(_files[0])),
- atr(NULL),
- fname(NULL),
+ atr(nullptr),
+ fname(nullptr),
filetype(typeInvalid)
{}
@@ -239,15 +239,15 @@ CVKOptions::CVKOptions(PROTO_INTERFACE *proto) : pwszDefaultGroup(proto, "ProtoGroup", L"VKontakte"),
pwszReturnChatMessage(proto, "ReturnChatMessage", TranslateT("I'm back")),
- pwszVKLang(proto, "VKLang", NULL)
+ pwszVKLang(proto, "VKLang", nullptr)
{
// Note: Delete this code after next stable build
- int iAutoClean = db_get_b(NULL, proto->m_szModuleName, "AutoClean", -1);
+ int iAutoClean = db_get_b(0, proto->m_szModuleName, "AutoClean", -1);
if (iAutoClean != -1) {
bLoadOnlyFriends = (BYTE)iAutoClean;
- db_set_b(NULL, proto->m_szModuleName, "LoadOnlyFriends", bLoadOnlyFriends);
- db_unset(NULL, proto->m_szModuleName, "AutoClean");
+ db_set_b(0, proto->m_szModuleName, "LoadOnlyFriends", bLoadOnlyFriends);
+ db_unset(0, proto->m_szModuleName, "AutoClean");
}
// Note
-}
+}
\ No newline at end of file |