diff options
author | Goraf <22941576+Goraf@users.noreply.github.com> | 2017-11-13 15:03:31 +0100 |
---|---|---|
committer | Goraf <22941576+Goraf@users.noreply.github.com> | 2017-11-13 15:07:33 +0100 |
commit | a7c24ca48995cf2bf436156302f96b91bf135409 (patch) | |
tree | 953835509ff1b778833e78fd7b74b05e05e77c84 /protocols/JabberG/src/jabber_console.cpp | |
parent | 591ec17b1c99db7f120c22ca9fb20ae05fe78325 (diff) |
Code modernize ...
* replace 0/NULL with nullptr [using clang-tidy]
Diffstat (limited to 'protocols/JabberG/src/jabber_console.cpp')
-rw-r--r-- | protocols/JabberG/src/jabber_console.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
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()
|