diff options
author | George Hazan <george.hazan@gmail.com> | 2016-06-13 12:37:22 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2016-06-13 12:37:22 +0000 |
commit | bfb6e607aa1c602e43267c5c43657c886bfad631 (patch) | |
tree | d37d11cb733b8524381dfa013ee4bd8338efa982 /protocols/JabberG/src/jabber_search.cpp | |
parent | 4659cfc9c660e7c06af27ef44ee43e6f620fbd23 (diff) |
minor code cleaning
git-svn-id: http://svn.miranda-ng.org/main/trunk@16962 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/JabberG/src/jabber_search.cpp')
-rw-r--r-- | protocols/JabberG/src/jabber_search.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/protocols/JabberG/src/jabber_search.cpp b/protocols/JabberG/src/jabber_search.cpp index 3025d4a400..fde6109462 100644 --- a/protocols/JabberG/src/jabber_search.cpp +++ b/protocols/JabberG/src/jabber_search.cpp @@ -401,7 +401,7 @@ void CJabberProto::OnIqResultAdvancedSearch(HXML iqNode, CJabberIqInfo*) SearchReturnResults((HANDLE)id, (void*)&SearchResults, (U_TCHAR_MAP *)&mColumnsNames); for (int i = 0; i < SearchResults.getCount(); i++) - delete ((U_TCHAR_MAP *)SearchResults[i]); + delete ((U_TCHAR_MAP*)SearchResults[i]); //send success to finish searching ProtoBroadcastAck(NULL, ACKTYPE_SEARCH, ACKRESULT_SUCCESS, (HANDLE)id, 0); @@ -488,9 +488,9 @@ static void JabberSearchAddUrlToRecentCombo(HWND hwndDlg, const TCHAR *szAddr) SendDlgItemMessage(hwndDlg, IDC_SERVER, CB_ADDSTRING, 0, (LPARAM)szAddr); } -void CJabberProto::SearchDeleteFromRecent(const TCHAR *szAddr, BOOL deleteLastFromDB) +void CJabberProto::SearchDeleteFromRecent(const TCHAR *szAddr, bool deleteLastFromDB) { - //search in recent + // search in recent for (int i = 0; i < 10; i++) { char key[30]; mir_snprintf(key, "RecentlySearched_%d", i); @@ -520,7 +520,7 @@ void CJabberProto::SearchDeleteFromRecent(const TCHAR *szAddr, BOOL deleteLastFr void CJabberProto::SearchAddToRecent(const TCHAR *szAddr, HWND hwndDialog) { char key[30]; - SearchDeleteFromRecent(szAddr); + SearchDeleteFromRecent(szAddr, true); for (int j = 9; j > 0; j--) { mir_snprintf(key, "RecentlySearched_%d", j - 1); |