From 95ecee334d06657df2ae0799ac824df88b1675d6 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Thu, 11 Aug 2022 19:00:57 +0300 Subject: code cleaning --- protocols/JabberG/src/jabber_voip.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'protocols') diff --git a/protocols/JabberG/src/jabber_voip.cpp b/protocols/JabberG/src/jabber_voip.cpp index 2262466334..9843bbfce9 100644 --- a/protocols/JabberG/src/jabber_voip.cpp +++ b/protocols/JabberG/src/jabber_voip.cpp @@ -472,7 +472,7 @@ bool CJabberProto::VOIPCallIinitiate(MCONTACT hContact) if (!m_voipSession.IsEmpty()) { VOIPTerminateSession(); MessageBoxA(0, "Terminated", NULL, 0); - return 0; + return false; } if (!m_bEnableVOIP) @@ -480,7 +480,7 @@ bool CJabberProto::VOIPCallIinitiate(MCONTACT hContact) CMStringA jid(ptrA(getUStringA(hContact, "jid"))); if (jid == "") - return 0; + return false; ptrA szResource(GetBestResourceName(jid)); if (szResource) jid = MakeJid(jid, szResource); @@ -488,7 +488,7 @@ bool CJabberProto::VOIPCallIinitiate(MCONTACT hContact) CMStringA question(FORMAT, "Call %s?\r\n" "It will disclose IP address to the peer and his server", jid.c_str()); if (MessageBoxA(0, question.c_str(), "Outgoing call", MB_YESNO | MB_ICONQUESTION) != IDYES) - return 0; + return false; unsigned char tmp[16]; Utils_GetRandom(tmp, sizeof(tmp)); @@ -498,7 +498,8 @@ bool CJabberProto::VOIPCallIinitiate(MCONTACT hContact) m_voipPeerJid = jid.c_str(); VOIPCreatePipeline(); - return 0; + + return true; } bool CJabberProto::VOIPCallAccept(const TiXmlElement *jingleNode, const char *from) -- cgit v1.2.3