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] --- plugins/MirandaG15/src/CChatScreen.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'plugins/MirandaG15/src/CChatScreen.cpp') diff --git a/plugins/MirandaG15/src/CChatScreen.cpp b/plugins/MirandaG15/src/CChatScreen.cpp index 12020a9630..132b5ad2f2 100644 --- a/plugins/MirandaG15/src/CChatScreen.cpp +++ b/plugins/MirandaG15/src/CChatScreen.cpp @@ -172,14 +172,14 @@ void CChatScreen::UpdateLabels() tstring strProto = L""; tstring strStatus = L""; - if(szProto != NULL) + if(szProto != nullptr) { strProto = L"(" + toTstring(szProto) + L")"; m_iStatus = db_get_w(m_hContact,szProto,"Status",ID_STATUS_OFFLINE); } wchar_t *szStatus = pcli->pfnGetStatusModeDescription(m_iStatus, 0); - if(szStatus != NULL) + if(szStatus != nullptr) strStatus = toTstring(szStatus); m_UserName.SetText(strNickname.c_str()); @@ -459,7 +459,7 @@ void CChatScreen::ActivateMessageMode() { m_InfoText.Show(0); m_TextLog.Show(0); - m_TextLog.SetScrollbar(NULL); + m_TextLog.SetScrollbar(nullptr); m_Input.SetScrollbar(&m_Scrollbar); if(m_eReplyState != REPLY_STATE_FAILED) @@ -532,7 +532,7 @@ void CChatScreen::DeactivateMessageMode() { m_Input.Reset(); - m_Input.SetScrollbar(NULL); + m_Input.SetScrollbar(nullptr); m_TextLog.SetScrollbar(&m_Scrollbar); m_TextLog.Show(1); -- cgit v1.2.3