summaryrefslogtreecommitdiff
path: root/protocols/IcqOscarJ/src/icq_clients.cpp
diff options
context:
space:
mode:
authorGoraf <22941576+Goraf@users.noreply.github.com>2017-11-13 15:03:31 +0100
committerGoraf <22941576+Goraf@users.noreply.github.com>2017-11-13 15:07:33 +0100
commita7c24ca48995cf2bf436156302f96b91bf135409 (patch)
tree953835509ff1b778833e78fd7b74b05e05e77c84 /protocols/IcqOscarJ/src/icq_clients.cpp
parent591ec17b1c99db7f120c22ca9fb20ae05fe78325 (diff)
Code modernize ...
* replace 0/NULL with nullptr [using clang-tidy]
Diffstat (limited to 'protocols/IcqOscarJ/src/icq_clients.cpp')
-rw-r--r--protocols/IcqOscarJ/src/icq_clients.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/protocols/IcqOscarJ/src/icq_clients.cpp b/protocols/IcqOscarJ/src/icq_clients.cpp
index 9c1c44dc56..83ba2f4d1d 100644
--- a/protocols/IcqOscarJ/src/icq_clients.cpp
+++ b/protocols/IcqOscarJ/src/icq_clients.cpp
@@ -55,7 +55,7 @@ static void verToStr(char *szStr, int v)
static char* MirandaVersionToStringEx(char* szStr, int bUnicode, const char* szPlug, int v, int m)
{
if (!v) // this is not Miranda
- return NULL;
+ return nullptr;
mir_strcpy(szStr, "Miranda IM ");
@@ -195,7 +195,7 @@ const char* CIcqProto::detectUserClient(
BYTE *bClientId, /* Output: detected client-type */
char *szClientBuf)
{
- LPCSTR szClient = NULL;
+ LPCSTR szClient = nullptr;
int bMirandaIM = FALSE;
*bClientId = CLID_ALTERNATIVE; // Most clients does not tick as MsgIDs
@@ -666,7 +666,7 @@ const char* CIcqProto::detectUserClient(
// others - like jabber transport uses unmodified library, thus cannot be detected
}
// THE SIGNATURE DETECTION ENDS HERE, after this only feature default will be detected
- else if (szClient == NULL) {
+ else if (szClient == nullptr) {
// ZA mangled the version, OMG!
if (wVersion == 8 && CheckContactCapabilities(hContact, CAPF_XTRAZ) && (MatchCapability(caps, wLen, &capIMSecKey1, 6) || MatchCapability(caps, wLen, &capIMSecKey2, 6)))
wVersion = ICQ_VERSION;
@@ -931,7 +931,7 @@ const char* CIcqProto::detectUserClient(
szClient = "MRA client";
}
- if (szClient == NULL)
+ if (szClient == nullptr)
szClient = "AIM";
}
}
@@ -953,7 +953,7 @@ const char* CIcqProto::detectUserClient(
}
}
- BOOL bClientDetected = (szClient != NULL);
+ BOOL bClientDetected = (szClient != nullptr);
// client detection failed, provide default clients
if (!szClient) {
@@ -977,7 +977,7 @@ const char* CIcqProto::detectUserClient(
}
if (szClient) {
- char *szExtra = NULL;
+ char *szExtra = nullptr;
if (MatchCapability(caps, wLen, &capSimpLite))
szExtra = " + SimpLite";