summaryrefslogtreecommitdiff
path: root/protocols/AimOscar/src/away.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/AimOscar/src/away.cpp
parent591ec17b1c99db7f120c22ca9fb20ae05fe78325 (diff)
Code modernize ...
* replace 0/NULL with nullptr [using clang-tidy]
Diffstat (limited to 'protocols/AimOscar/src/away.cpp')
-rw-r--r--protocols/AimOscar/src/away.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/protocols/AimOscar/src/away.cpp b/protocols/AimOscar/src/away.cpp
index 12c15f7a2e..96d4847d9b 100644
--- a/protocols/AimOscar/src/away.cpp
+++ b/protocols/AimOscar/src/away.cpp
@@ -38,17 +38,17 @@ char** CAimProto::get_status_msg_loc(int status)
if (modes[i] == status)
return &m_modeMsgs[i];
- return NULL;
+ return nullptr;
}
int CAimProto::aim_set_away(HNETLIBCONN hServerConn, unsigned short &seqno, const char *amsg, bool set)//user info
{
unsigned short offset = 0;
- char *html_msg = NULL;
+ char *html_msg = nullptr;
size_t msg_size = 0;
if (set) {
if (!amsg) return -1;
- setDword(AIM_KEY_LA, (DWORD)time(NULL));
+ setDword(AIM_KEY_LA, (DWORD)time(nullptr));
html_msg = html_encode(amsg && amsg[0] ? amsg : DEFAULT_AWAY_MSG);
msg_size = mir_strlen(html_msg);
}
@@ -96,7 +96,7 @@ int CAimProto::aim_set_statusmsg(HNETLIBCONN hServerConn, unsigned short &seqno,
aim_writebartid(2, 4, (unsigned short)(msg_size + 4), msgb, msgoffset, msgbuf);
}
- else aim_writebartid(2, 0, 0, NULL, msgoffset, msgbuf);
+ else aim_writebartid(2, 0, 0, nullptr, msgoffset, msgbuf);
unsigned short offset = 0;
char* buf = (char*)alloca(SNAC_SIZE + TLV_HEADER_SIZE + msgoffset + 8);