diff options
author | George Hazan <george.hazan@gmail.com> | 2012-10-13 22:28:28 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2012-10-13 22:28:28 +0000 |
commit | fd90113f1a40064a9a6dc670a60dd3b2a738a467 (patch) | |
tree | 9d6bf74c6fdaaf7405329ef7f72caf12bbba658b /src/modules/skin | |
parent | 5849172a0425c813f3f57abbbf941022fa420950 (diff) |
code cleaning
git-svn-id: http://svn.miranda-ng.org/main/trunk@1915 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'src/modules/skin')
-rw-r--r-- | src/modules/skin/skinicons.cpp | 4 | ||||
-rw-r--r-- | src/modules/skin/sounds.cpp | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/modules/skin/skinicons.cpp b/src/modules/skin/skinicons.cpp index 983500b358..2cbef87a94 100644 --- a/src/modules/skin/skinicons.cpp +++ b/src/modules/skin/skinicons.cpp @@ -372,7 +372,7 @@ static void convertOneProtocol(char* moduleName, char* iconName) if ( !DBGetContactSettingTString(NULL, "Icons", moduleName, &dbv)) {
_itoa(i, pi, 10);
- DBWriteContactSettingTString(NULL, "SkinIcons", iconName, dbv.ptszVal);
+ db_set_ts(NULL, "SkinIcons", iconName, dbv.ptszVal);
DBFreeVariant(&dbv);
DBDeleteContactSetting(NULL, "Icons", moduleName);
@@ -423,7 +423,7 @@ int LoadSkinIcons(void) mir_snprintf(iconName, SIZEOF(iconName), "%s%d", mainIconsFmt, i);
- DBWriteContactSettingTString(NULL, "SkinIcons", iconName, dbv.ptszVal);
+ db_set_ts(NULL, "SkinIcons", iconName, dbv.ptszVal);
DBFreeVariant(&dbv);
DBDeleteContactSetting(NULL, "Icons", moduleName);
diff --git a/src/modules/skin/sounds.cpp b/src/modules/skin/sounds.cpp index 44b463eb96..c79db357f1 100644 --- a/src/modules/skin/sounds.cpp +++ b/src/modules/skin/sounds.cpp @@ -94,7 +94,7 @@ static INT_PTR ServiceSkinAddNewSound(WPARAM wParam, LPARAM lParam) if (ptszDefaultFile) {
DBVARIANT dbv;
if (DBGetContactSettingString(NULL, "SkinSounds", item->name, &dbv))
- DBWriteContactSettingTString(NULL, "SkinSounds", item->name, ptszDefaultFile);
+ db_set_ts(NULL, "SkinSounds", item->name, ptszDefaultFile);
else
DBFreeVariant(&dbv);
mir_free(ptszDefaultFile);
@@ -333,7 +333,7 @@ INT_PTR CALLBACK DlgProcSoundOpts(HWND hwndDlg, UINT msg, WPARAM wParam, LPARAM for (int i=0; i < arSounds.getCount(); i++)
if (arSounds[i].ptszTempFile)
- DBWriteContactSettingTString(NULL, "SkinSounds", arSounds[i].name, arSounds[i].ptszTempFile);
+ db_set_ts(NULL, "SkinSounds", arSounds[i].name, arSounds[i].ptszTempFile);
TVITEM tvi, tvic;
tvi.hItem = TreeView_GetRoot(hwndTree);
|