summaryrefslogtreecommitdiff
path: root/protocols/JabberG/src/jabber_search.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2019-02-19 19:24:04 +0300
committerGeorge Hazan <ghazan@miranda.im>2019-02-19 19:24:17 +0300
commit842305935dae96495bb70f5976489e4e79a2491d (patch)
tree507bb177a0d37e96f621fecf05089473bcdf7768 /protocols/JabberG/src/jabber_search.cpp
parent15aed01c9736ea9b33d41ee9bbc72c1be1fc4f74 (diff)
compilation fix
Diffstat (limited to 'protocols/JabberG/src/jabber_search.cpp')
-rw-r--r--protocols/JabberG/src/jabber_search.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/protocols/JabberG/src/jabber_search.cpp b/protocols/JabberG/src/jabber_search.cpp
index ef39ad41d6..99d77d6c38 100644
--- a/protocols/JabberG/src/jabber_search.cpp
+++ b/protocols/JabberG/src/jabber_search.cpp
@@ -325,7 +325,7 @@ void CJabberProto::OnIqResultAdvancedSearch(const TiXmlElement *iqNode, CJabberI
if (const char* var = fieldNode->Attribute("var")) {
if (auto *textNode = fieldNode->FirstChildElement("value")) {
Utf2T wszVar(var), wszText(textNode->GetText());
- if (!mColumnsNames[wszVar])
+ if (!mColumnsNames[wszVar.get()])
mColumnsNames.insert(wszVar, wszVar);
pUserColumn->insert(wszVar, wszText);
}
@@ -751,7 +751,7 @@ HWND CJabberProto::SearchAdvanced(HWND hwndDlg)
wchar_t szFieldValue[100];
GetWindowText(dat->pJSInf[i].hwndValueItem, szFieldValue, _countof(szFieldValue));
if (szFieldValue[0] != 0) {
- XmlAddChild(query, T2Utf(dat->pJSInf[i].szFieldName), T2Utf(szFieldValue));
+ XmlAddChild(query, T2Utf(dat->pJSInf[i].szFieldName).get(), T2Utf(szFieldValue).get());
fRequestNotEmpty = TRUE;
}
}