summaryrefslogtreecommitdiff
path: root/plugins/MirandaG15/src/CChatScreen.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 /plugins/MirandaG15/src/CChatScreen.cpp
parent591ec17b1c99db7f120c22ca9fb20ae05fe78325 (diff)
Code modernize ...
* replace 0/NULL with nullptr [using clang-tidy]
Diffstat (limited to 'plugins/MirandaG15/src/CChatScreen.cpp')
-rw-r--r--plugins/MirandaG15/src/CChatScreen.cpp8
1 files changed, 4 insertions, 4 deletions
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);