summaryrefslogtreecommitdiff
path: root/protocols/JabberG/src/jabber_search.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2020-02-17 18:00:46 +0300
committerGeorge Hazan <ghazan@miranda.im>2020-02-17 18:00:54 +0300
commit73769ed8b0004dd35a33fdf75d3186f557cb60f3 (patch)
tree245743897e5d0301fcd4c2f0305c012d21efbdbb /protocols/JabberG/src/jabber_search.cpp
parent554555b0d5de320c02a272caeccf8a419c1f62a8 (diff)
code cleaning
Diffstat (limited to 'protocols/JabberG/src/jabber_search.cpp')
-rw-r--r--protocols/JabberG/src/jabber_search.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/protocols/JabberG/src/jabber_search.cpp b/protocols/JabberG/src/jabber_search.cpp
index a76289d857..8df2fe88dc 100644
--- a/protocols/JabberG/src/jabber_search.cpp
+++ b/protocols/JabberG/src/jabber_search.cpp
@@ -168,7 +168,8 @@ void CJabberProto::OnIqResultGetSearchFields(const TiXmlElement *iqNode, CJabber
MyData->Var = mir_utf8decodeW(chNode->Name());
MyData->defValue = mir_utf8decodeW(chNode->GetText());
MyData->Order = Order;
- if (MyData->defValue) MyData->bReadOnly = TRUE;
+ if (MyData->defValue)
+ MyData->bReadOnly = true;
PostMessage(searchHandleDlg, WM_USER + 10, FALSE, (LPARAM)MyData);
Order++;
}
@@ -725,7 +726,7 @@ HWND CJabberProto::SearchAdvanced(HWND hwndDlg)
return nullptr;
// formating request
- BOOL fRequestNotEmpty = FALSE;
+ bool fRequestNotEmpty = false;
// get server name
wchar_t szServerName[100];
@@ -742,7 +743,7 @@ HWND CJabberProto::SearchAdvanced(HWND hwndDlg)
// next can be 2 cases:
// Forms: XEP-0055 Example 7
if (dat->fSearchRequestIsXForm) {
- fRequestNotEmpty = TRUE;
+ fRequestNotEmpty = true;
JabberFormGetData(GetDlgItem(hwndDlg, IDC_FRAME), query, dat->xNode);
}
else { //and Simple fields: XEP-0055 Example 3
@@ -751,7 +752,7 @@ HWND CJabberProto::SearchAdvanced(HWND hwndDlg)
GetWindowText(dat->pJSInf[i].hwndValueItem, szFieldValue, _countof(szFieldValue));
if (szFieldValue[0] != 0) {
XmlAddChildA(query, T2Utf(dat->pJSInf[i].szFieldName).get(), T2Utf(szFieldValue).get());
- fRequestNotEmpty = TRUE;
+ fRequestNotEmpty = true;
}
}
}