summaryrefslogtreecommitdiff
path: root/protocols/MSN/src/msn_ssl.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/MSN/src/msn_ssl.cpp
parent591ec17b1c99db7f120c22ca9fb20ae05fe78325 (diff)
Code modernize ...
* replace 0/NULL with nullptr [using clang-tidy]
Diffstat (limited to 'protocols/MSN/src/msn_ssl.cpp')
-rw-r--r--protocols/MSN/src/msn_ssl.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/protocols/MSN/src/msn_ssl.cpp b/protocols/MSN/src/msn_ssl.cpp
index 7e8541ab7c..d1c72c8a46 100644
--- a/protocols/MSN/src/msn_ssl.cpp
+++ b/protocols/MSN/src/msn_ssl.cpp
@@ -27,7 +27,7 @@ char* CMsnProto::getSslResult(char** parUrl, const char* parAuthInfo, const char
{
mHttpsTS = clock();
- char* result = NULL;
+ char* result = nullptr;
NETLIBHTTPREQUEST nlhr = { 0 };
// initialize the netlib request
@@ -59,7 +59,7 @@ char* CMsnProto::getSslResult(char** parUrl, const char* parAuthInfo, const char
char* hdrprs = NEWSTR_ALLOCA(hdrs);
for (;;) {
char* fnd = strchr(hdrprs, ':');
- if (fnd == NULL) break;
+ if (fnd == nullptr) break;
*fnd = 0;
fnd += 2;
@@ -67,7 +67,7 @@ char* CMsnProto::getSslResult(char** parUrl, const char* parAuthInfo, const char
nlhr.headers[nlhr.headersCount].szValue = fnd;
fnd = strchr(fnd, '\r');
- if (fnd == NULL) break;
+ if (fnd == nullptr) break;
*fnd = 0;
hdrprs = fnd + 2;
++nlhr.headersCount;
@@ -85,18 +85,18 @@ char* CMsnProto::getSslResult(char** parUrl, const char* parAuthInfo, const char
if (nlhrReply->szUrl) {
mir_free(*parUrl);
*parUrl = nlhrReply->szUrl;
- nlhrReply->szUrl = NULL;
+ nlhrReply->szUrl = nullptr;
}
result = nlhrReply->pData;
nlhrReply->dataLength = 0;
- nlhrReply->pData = NULL;
+ nlhrReply->pData = nullptr;
Netlib_FreeHttpRequest(nlhrReply);
}
else
- hHttpsConnection = NULL;
+ hHttpsConnection = nullptr;
mHttpsTS = clock();