summaryrefslogtreecommitdiff
path: root/src/modules/clist/groups.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2012-10-13 22:28:28 +0000
committerGeorge Hazan <george.hazan@gmail.com>2012-10-13 22:28:28 +0000
commitfd90113f1a40064a9a6dc670a60dd3b2a738a467 (patch)
tree9d6bf74c6fdaaf7405329ef7f72caf12bbba658b /src/modules/clist/groups.cpp
parent5849172a0425c813f3f57abbbf941022fa420950 (diff)
code cleaning
git-svn-id: http://svn.miranda-ng.org/main/trunk@1915 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'src/modules/clist/groups.cpp')
-rw-r--r--src/modules/clist/groups.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/modules/clist/groups.cpp b/src/modules/clist/groups.cpp
index 1cfc8b7a9d..905574c51b 100644
--- a/src/modules/clist/groups.cpp
+++ b/src/modules/clist/groups.cpp
@@ -99,7 +99,7 @@ static INT_PTR CreateGroup(WPARAM wParam, LPARAM lParam)
const CLISTGROUPCHANGE grpChg = { sizeof(CLISTGROUPCHANGE), NULL, newName };
newName[0] = 1 | GROUPF_EXPANDED; //1 is required so we never get '\0'
- DBWriteContactSettingTString(NULL, "CListGroups", str, newName);
+ db_set_ts(NULL, "CListGroups", str, newName);
CallService(MS_CLUI_GROUPADDED, newId + 1, 1);
NotifyEventHooks(hGroupChangeEvent, 0, (LPARAM)&grpChg);
@@ -199,7 +199,7 @@ static INT_PTR DeleteGroup(WPARAM wParam, LPARAM)
if (szNewParent[0])
{
- DBWriteContactSettingTString(hContact, "CList", "Group", szNewParent);
+ db_set_ts(hContact, "CList", "Group", szNewParent);
grpChg.pszNewName = szNewParent;
}
else
@@ -270,14 +270,14 @@ static int RenameGroupWithMove(int groupId, const TCHAR *szName, int move)
lstrcpyn(oldName, dbv.ptszVal + 1, SIZEOF(oldName));
DBFreeVariant(&dbv);
lstrcpyn(str + 1, szName, SIZEOF(str) - 1);
- DBWriteContactSettingTString(NULL, "CListGroups", idstr, str);
+ db_set_ts(NULL, "CListGroups", idstr, str);
//must rename setting in all child contacts too
hContact = db_find_first();
do {
ClcCacheEntryBase* cache = cli.pfnGetCacheEntry(hContact);
if ( !lstrcmp(cache->tszGroup, oldName)) {
- DBWriteContactSettingTString(hContact, "CList", "Group", szName);
+ db_set_ts(hContact, "CList", "Group", szName);
mir_free(cache->tszGroup);
cache->tszGroup = 0;
cli.pfnCheckCacheItem(cache);
@@ -440,7 +440,7 @@ static INT_PTR MoveGroupBefore(WPARAM wParam, LPARAM lParam)
}
}
_itoa(shuffleTo, str, 10);
- DBWriteContactSettingTString(NULL, "CListGroups", str, szMoveName);
+ db_set_ts(NULL, "CListGroups", str, szMoveName);
mir_free(szMoveName);
return shuffleTo + 1;
}