diff options
author | Goraf <22941576+Goraf@users.noreply.github.com> | 2017-11-13 15:03:31 +0100 |
---|---|---|
committer | Goraf <22941576+Goraf@users.noreply.github.com> | 2017-11-13 15:07:33 +0100 |
commit | a7c24ca48995cf2bf436156302f96b91bf135409 (patch) | |
tree | 953835509ff1b778833e78fd7b74b05e05e77c84 /protocols/Sametime/src/messaging.cpp | |
parent | 591ec17b1c99db7f120c22ca9fb20ae05fe78325 (diff) |
Code modernize ...
* replace 0/NULL with nullptr [using clang-tidy]
Diffstat (limited to 'protocols/Sametime/src/messaging.cpp')
-rw-r--r-- | protocols/Sametime/src/messaging.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/protocols/Sametime/src/messaging.cpp b/protocols/Sametime/src/messaging.cpp index 039aac3cb5..9b0fa0b9fb 100644 --- a/protocols/Sametime/src/messaging.cpp +++ b/protocols/Sametime/src/messaging.cpp @@ -82,7 +82,7 @@ void mwIm_conversation_recv(mwConversation* conv, mwImSendType type, gconstpoint return;
PROTORECVEVENT pre = { 0 };
- time_t t = time(NULL);
+ time_t t = time(nullptr);
pre.timestamp = t;
pre.szMessage = (char*)msg;
ProtoChainRecvMsg(hContact, &pre);
@@ -109,7 +109,7 @@ mwImHandler mwIm_handler = { mwIm_conversation_closed,
mwIm_conversation_recv,
mwIm_place_invite,
- NULL
+ nullptr
};
HANDLE CSametimeProto::SendMessageToUser(MCONTACT hContact, const char *szMsg)
@@ -142,7 +142,7 @@ HANDLE CSametimeProto::SendMessageToUser(MCONTACT hContact, const char *szMsg) free(id_block.user);
}
- return 0;
+ return nullptr;
}
void CSametimeProto::SendTyping(MCONTACT hContact, bool typing)
@@ -200,5 +200,5 @@ void CSametimeProto::DeinitMessaging() debugLogW(L"CSametimeProto::DeinitMessaging()");
mwSession_removeService(session, mwService_IM);
mwService_free((mwService*)service_im);
- service_im = 0;
+ service_im = nullptr;
}
|