From a7c24ca48995cf2bf436156302f96b91bf135409 Mon Sep 17 00:00:00 2001 From: Goraf <22941576+Goraf@users.noreply.github.com> Date: Mon, 13 Nov 2017 15:03:31 +0100 Subject: Code modernize ... * replace 0/NULL with nullptr [using clang-tidy] --- protocols/Omegle/src/proto.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'protocols/Omegle/src/proto.cpp') 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(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(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; -- cgit v1.2.3