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/IEView/src/ChatHTMLBuilder.cpp | 12 +-- plugins/IEView/src/HTMLBuilder.cpp | 76 +++++++-------- plugins/IEView/src/HistoryHTMLBuilder.cpp | 16 +-- plugins/IEView/src/IEView.cpp | 152 ++++++++++++++--------------- plugins/IEView/src/MUCCHTMLBuilder.cpp | 14 +-- plugins/IEView/src/Options.cpp | 110 ++++++++++----------- plugins/IEView/src/ScriverHTMLBuilder.cpp | 20 ++-- plugins/IEView/src/TabSRMMHTMLBuilder.cpp | 24 ++--- plugins/IEView/src/Template.cpp | 60 ++++++------ plugins/IEView/src/TemplateHTMLBuilder.cpp | 106 ++++++++++---------- plugins/IEView/src/TextToken.cpp | 68 ++++++------- plugins/IEView/src/Utils.cpp | 8 +- plugins/IEView/src/external_funcs.cpp | 4 +- plugins/IEView/src/ieview_main.cpp | 2 +- plugins/IEView/src/ieview_services.cpp | 14 +-- 15 files changed, 343 insertions(+), 343 deletions(-) (limited to 'plugins/IEView/src') diff --git a/plugins/IEView/src/ChatHTMLBuilder.cpp b/plugins/IEView/src/ChatHTMLBuilder.cpp index 12c0308a3e..d3f5cf2847 100644 --- a/plugins/IEView/src/ChatHTMLBuilder.cpp +++ b/plugins/IEView/src/ChatHTMLBuilder.cpp @@ -41,7 +41,7 @@ static const char *classNames[] = { ChatHTMLBuilder::ChatHTMLBuilder() { setLastEventType(-1); - setLastEventTime(time(NULL)); + setLastEventTime(time(nullptr)); } void ChatHTMLBuilder::loadMsgDlgFont(int i, LOGFONTA * lf, COLORREF * colour) @@ -98,7 +98,7 @@ void ChatHTMLBuilder::buildHead(IEView *view, IEVIEWEVENT *event) COLORREF color; ProtocolSettings *protoSettings = getChatProtocolSettings(event->pszProto); - if (protoSettings == NULL) + if (protoSettings == nullptr) return; if (protoSettings->getChatMode() == Options::MODE_TEMPLATE) @@ -110,9 +110,9 @@ void ChatHTMLBuilder::buildHead(IEView *view, IEVIEWEVENT *event) str.AppendFormat("\n", externalCSS); } else { - HDC hdc = GetDC(NULL); + HDC hdc = GetDC(nullptr); int logPixelSY = GetDeviceCaps(hdc, LOGPIXELSY); - ReleaseDC(NULL, hdc); + ReleaseDC(nullptr, hdc); str.Append(""); str.Append("