summaryrefslogtreecommitdiff
path: root/protocols/Omegle/src/proto.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/Omegle/src/proto.cpp
parent591ec17b1c99db7f120c22ca9fb20ae05fe78325 (diff)
Code modernize ...
* replace 0/NULL with nullptr [using clang-tidy]
Diffstat (limited to 'protocols/Omegle/src/proto.cpp')
-rw-r--r--protocols/Omegle/src/proto.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/protocols/Omegle/src/proto.cpp b/protocols/Omegle/src/proto.cpp
index aa46bbc601..3f98ad8845 100644
--- a/protocols/Omegle/src/proto.cpp
+++ b/protocols/Omegle/src/proto.cpp
@@ -27,10 +27,10 @@ PROTO<OmegleProto>(proto_name, username)
{
this->facy.parent = this;
- this->signon_lock_ = CreateMutex(NULL, FALSE, NULL);
- this->log_lock_ = CreateMutex(NULL, FALSE, NULL);
- this->facy.connection_lock_ = CreateMutex(NULL, FALSE, NULL);
- this->events_loop_lock_ = CreateMutex(NULL, FALSE, NULL);
+ this->signon_lock_ = CreateMutex(nullptr, FALSE, nullptr);
+ this->log_lock_ = CreateMutex(nullptr, FALSE, nullptr);
+ this->facy.connection_lock_ = CreateMutex(nullptr, FALSE, nullptr);
+ this->events_loop_lock_ = CreateMutex(nullptr, FALSE, nullptr);
// Group chats
CreateProtoService(PS_JOINCHAT, &OmegleProto::OnJoinChat);
@@ -49,10 +49,10 @@ PROTO<OmegleProto>(proto_name, username)
mir_snwprintf(descr, TranslateT("%s server connection"), m_tszUserName);
nlu.szDescriptiveName.w = descr;
m_hNetlibUser = Netlib_RegisterUser(&nlu);
- if (m_hNetlibUser == NULL) {
+ if (m_hNetlibUser == nullptr) {
wchar_t error[200];
mir_snwprintf(error, TranslateT("Unable to initialize Netlib for %s."), m_tszUserName);
- MessageBox(NULL, error, L"Miranda NG", MB_OK | MB_ICONERROR);
+ MessageBox(nullptr, error, L"Miranda NG", MB_OK | MB_ICONERROR);
}
facy.set_handle(m_hNetlibUser);
@@ -171,7 +171,7 @@ int OmegleProto::OnModulesLoaded(WPARAM, LPARAM)
gcr.ptszDispName = m_tszUserName;
gcr.iMaxText = OMEGLE_MESSAGE_LIMIT;
gcr.nColors = 0;
- gcr.pColors = NULL;
+ gcr.pColors = nullptr;
Chat_Register(&gcr);
return 0;