diff options
author | George Hazan <ghazan@miranda.im> | 2020-02-17 18:00:46 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2020-02-17 18:00:54 +0300 |
commit | 73769ed8b0004dd35a33fdf75d3186f557cb60f3 (patch) | |
tree | 245743897e5d0301fcd4c2f0305c012d21efbdbb /protocols/JabberG/src/jabber_opt.cpp | |
parent | 554555b0d5de320c02a272caeccf8a419c1f62a8 (diff) |
code cleaning
Diffstat (limited to 'protocols/JabberG/src/jabber_opt.cpp')
-rwxr-xr-x | protocols/JabberG/src/jabber_opt.cpp | 36 |
1 files changed, 18 insertions, 18 deletions
diff --git a/protocols/JabberG/src/jabber_opt.cpp b/protocols/JabberG/src/jabber_opt.cpp index a897472fce..09039d2989 100755 --- a/protocols/JabberG/src/jabber_opt.cpp +++ b/protocols/JabberG/src/jabber_opt.cpp @@ -1111,13 +1111,13 @@ protected: // clear saved password
m_proto->m_savedPassword = nullptr;
- BOOL bUseHostnameAsResource = FALSE;
+ bool bUseHostnameAsResource = false;
wchar_t szCompName[MAX_COMPUTERNAME_LENGTH + 1], szResource[MAX_COMPUTERNAME_LENGTH + 1];
DWORD dwCompNameLength = MAX_COMPUTERNAME_LENGTH;
if (GetComputerName(szCompName, &dwCompNameLength)) {
m_cbResource.GetText(szResource, _countof(szResource));
if (!mir_wstrcmp(szCompName, szResource))
- bUseHostnameAsResource = TRUE;
+ bUseHostnameAsResource = true;
}
m_proto->m_bHostNameAsResource = bUseHostnameAsResource;
@@ -1130,7 +1130,7 @@ protected: switch (m_cbType.GetItemData(m_cbType.GetCurSel())) {
case ACC_PUBLIC:
- m_proto->m_bUseSSL = m_proto->m_bUseTLS = FALSE;
+ m_proto->m_bUseSSL = m_proto->m_bUseTLS = false;
break;
case ACC_GTALK:
@@ -1138,27 +1138,27 @@ protected: {
int port = m_txtPort.GetInt();
if (port == 443 || port == 5223) {
- m_proto->m_bUseSSL = TRUE;
- m_proto->m_bUseTLS = FALSE;
+ m_proto->m_bUseSSL = true;
+ m_proto->m_bUseTLS = false;
}
else if (port == 5222) {
- m_proto->m_bUseSSL = FALSE;
- m_proto->m_bUseTLS = TRUE;
+ m_proto->m_bUseSSL = false;
+ m_proto->m_bUseTLS = true;
}
}
break;
case ACC_OK:
- m_proto->m_bIgnoreRosterGroups = TRUE;
- m_proto->m_bUseSSL = FALSE;
- m_proto->m_bUseTLS = TRUE;
+ m_proto->m_bIgnoreRosterGroups = true;
+ m_proto->m_bUseSSL = false;
+ m_proto->m_bUseTLS = true;
case ACC_TLS:
case ACC_HIPCHAT:
case ACC_LJTALK:
case ACC_SMS:
- m_proto->m_bUseSSL = FALSE;
- m_proto->m_bUseTLS = TRUE;
+ m_proto->m_bUseSSL = false;
+ m_proto->m_bUseTLS = true;
break;
case ACC_LOL_EN:
@@ -1166,13 +1166,13 @@ protected: case ACC_LOL_OC:
case ACC_LOL_US:
m_proto->setDword("Priority", -2);
- m_proto->m_bUseSSL = TRUE;
- m_proto->m_bUseTLS = FALSE;
+ m_proto->m_bUseSSL = true;
+ m_proto->m_bUseTLS = false;
break;
case ACC_SSL:
- m_proto->m_bUseSSL = TRUE;
- m_proto->m_bUseTLS = FALSE;
+ m_proto->m_bUseSSL = true;
+ m_proto->m_bUseTLS = false;
break;
}
@@ -1183,13 +1183,13 @@ protected: m_txtManualHost.GetTextA(manualServer, _countof(manualServer));
if ((m_chkManualHost.GetState() == BST_CHECKED) && mir_strcmp(server, manualServer)) {
- m_proto->m_bManualConnect = TRUE;
+ m_proto->m_bManualConnect = true;
m_proto->setString("ManualHost", manualServer);
m_proto->setWord("ManualPort", m_txtPort.GetInt());
m_proto->setWord("Port", m_txtPort.GetInt());
}
else {
- m_proto->m_bManualConnect = FALSE;
+ m_proto->m_bManualConnect = false;
m_proto->delSetting("ManualHost");
m_proto->delSetting("ManualPort");
m_proto->setWord("Port", m_txtPort.GetInt());
|