summaryrefslogtreecommitdiff
path: root/protocols/JabberG/src/jabber_console.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'protocols/JabberG/src/jabber_console.cpp')
-rw-r--r--protocols/JabberG/src/jabber_console.cpp8
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()