diff options
author | George Hazan <george.hazan@gmail.com> | 2013-07-10 15:56:56 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2013-07-10 15:56:56 +0000 |
commit | 22f0f1c668f467a4b938d007f689991fb6da602d (patch) | |
tree | c2a02b8c4067af0b6c86a78091f14d99f681c964 /protocols/JabberG/src/jabber_search.cpp | |
parent | eae36a4c2b34054432e105b81352f2b59db84b24 (diff) |
Jabber -> new helpers
git-svn-id: http://svn.miranda-ng.org/main/trunk@5309 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/JabberG/src/jabber_search.cpp')
-rw-r--r-- | protocols/JabberG/src/jabber_search.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/protocols/JabberG/src/jabber_search.cpp b/protocols/JabberG/src/jabber_search.cpp index 12987053ef..d4843336d1 100644 --- a/protocols/JabberG/src/jabber_search.cpp +++ b/protocols/JabberG/src/jabber_search.cpp @@ -486,12 +486,12 @@ void CJabberProto::SearchDeleteFromRecent(const TCHAR *szAddr, BOOL deleteLastFr //search in recent
for (int i=0; i<10; i++) {
sprintf(key,"RecentlySearched_%d",i);
- if ( !getTString(NULL, key, &dbv)) {
+ if ( !getTString(key, &dbv)) {
if ( !_tcsicmp(szAddr, dbv.ptszVal)) {
db_free(&dbv);
for (int j=i; j<10; j++) {
sprintf(key, "RecentlySearched_%d", j+1);
- if ( !getTString(NULL, key, &dbv)) {
+ if ( !getTString(key, &dbv)) {
sprintf(key,"RecentlySearched_%d",j);
setTString(NULL,key,dbv.ptszVal);
db_free(&dbv);
@@ -499,7 +499,7 @@ void CJabberProto::SearchDeleteFromRecent(const TCHAR *szAddr, BOOL deleteLastFr else {
if (deleteLastFromDB) {
sprintf(key,"RecentlySearched_%d",j);
- JDeleteSetting(NULL,key);
+ delSetting(NULL,key);
}
break;
} }
@@ -515,14 +515,14 @@ void CJabberProto::SearchAddToRecent(const TCHAR *szAddr, HWND hwndDialog) SearchDeleteFromRecent(szAddr);
for (int j=9; j > 0; j--) {
sprintf(key, "RecentlySearched_%d", j-1);
- if ( !getTString(NULL, key, &dbv)) {
+ if ( !getTString(key, &dbv)) {
sprintf(key,"RecentlySearched_%d",j);
setTString(NULL,key,dbv.ptszVal);
db_free(&dbv);
} }
sprintf(key, "RecentlySearched_%d", 0);
- setTString(NULL, key, szAddr);
+ setTString(key, szAddr);
if (hwndDialog)
JabberSearchAddUrlToRecentCombo(hwndDialog, szAddr);
}
@@ -556,7 +556,7 @@ static INT_PTR CALLBACK JabberSearchAdvancedDlgProc(HWND hwndDlg, UINT msg, WPAR char key[30];
for (i=0; i < 10; i++) {
sprintf(key,"RecentlySearched_%d",i);
- if ( !dat->ppro->getTString(NULL, key, &dbv)) {
+ if ( !dat->ppro->getTString(key, &dbv)) {
JabberSearchAddUrlToRecentCombo(hwndDlg, dbv.ptszVal);
db_free(&dbv);
} }
|