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/JabberG/src/jabber_console.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'protocols/JabberG/src/jabber_console.cpp') diff --git a/protocols/JabberG/src/jabber_console.cpp b/protocols/JabberG/src/jabber_console.cpp index c6646f52c7..3173d6757a 100644 --- a/protocols/JabberG/src/jabber_console.cpp +++ b/protocols/JabberG/src/jabber_console.cpp @@ -85,7 +85,7 @@ void CJabberProto::OnConsoleProcessXml(HXML node, DWORD flags) if (node && m_pDlgConsole) { if (XmlGetName(node)) { if (FilterXml(node, flags)) { - StringBuf buf = {0}; + StringBuf buf = {}; sttAppendBufRaw(&buf, RTF_HEADER); sttRtfAppendXml(&buf, node, flags, 1); sttAppendBufRaw(&buf, RTF_SEPARATOR); @@ -186,7 +186,7 @@ static void sttAppendBufW(StringBuf *buf, const WCHAR *str) static void sttEmptyBuf(StringBuf *buf) { if (buf->buf) mir_free(buf->buf); - buf->buf = 0; + buf->buf = nullptr; buf->size = 0; buf->offset = 0; } @@ -509,7 +509,7 @@ INT_PTR CJabberDlgConsole::DlgProc(UINT msg, WPARAM wParam, LPARAM lParam) if (xmlTmp) m_proto->m_ThreadInfo->send(xmlTmp); else { - StringBuf buf = { 0 }; + StringBuf buf = {}; sttAppendBufRaw(&buf, RTF_HEADER); sttAppendBufRaw(&buf, RTF_BEGINPLAINXML); sttAppendBufT(&buf, TranslateT("Outgoing XML parsing error")); @@ -614,7 +614,7 @@ void __cdecl CJabberProto::ConsoleThread(void*) void CJabberProto::ConsoleInit() { - m_hThreadConsole = ForkThreadEx(&CJabberProto::ConsoleThread, 0, &m_dwConsoleThreadId); + m_hThreadConsole = ForkThreadEx(&CJabberProto::ConsoleThread, nullptr, &m_dwConsoleThreadId); } void CJabberProto::ConsoleUninit() -- cgit v1.2.3