summaryrefslogtreecommitdiff
path: root/protocols/JabberG/src/jabber_icolib.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'protocols/JabberG/src/jabber_icolib.cpp')
-rw-r--r--protocols/JabberG/src/jabber_icolib.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/protocols/JabberG/src/jabber_icolib.cpp b/protocols/JabberG/src/jabber_icolib.cpp
index 420ed4ca97..f25d7db8f0 100644
--- a/protocols/JabberG/src/jabber_icolib.cpp
+++ b/protocols/JabberG/src/jabber_icolib.cpp
@@ -349,16 +349,16 @@ INT_PTR __cdecl CJabberProto::JGetAdvancedStatusIcon(WPARAM hContact, LPARAM)
/////////////////////////////////////////////////////////////////////////////////////////
// Transport check functions
-BOOL CJabberProto::DBCheckIsTransportedContact(const char *jid, MCONTACT hContact)
+bool CJabberProto::DBCheckIsTransportedContact(const char *jid, MCONTACT hContact)
{
// check if transport is already set
if (!jid || !hContact)
- return FALSE;
+ return false;
// strip domain part from jid
char *domain = (char*)strchr(jid, '@');
- BOOL isAgent = (domain == nullptr) ? TRUE : FALSE;
- BOOL isTransported = FALSE;
+ bool isAgent = (domain == nullptr);
+ bool isTransported = false;
if (domain != nullptr)
domain = NEWSTR_ALLOCA(domain + 1);
else
@@ -371,7 +371,7 @@ BOOL CJabberProto::DBCheckIsTransportedContact(const char *jid, MCONTACT hContac
for (auto &it : TransportProtoTable)
if (MatchMask(domain, it.mask)) {
GetTransportStatusIconIndex(GetTransportProtoID(domain), ID_STATUS_OFFLINE);
- isTransported = TRUE;
+ isTransported = true;
break;
}