summaryrefslogtreecommitdiff
path: root/plugins/Boltun/src/config.cpp
diff options
context:
space:
mode:
authorVadim Dashevskiy <watcherhd@gmail.com>2013-01-18 17:53:47 +0000
committerVadim Dashevskiy <watcherhd@gmail.com>2013-01-18 17:53:47 +0000
commita95d0313e639fa16ee6e371d7a82d7d16e203d25 (patch)
tree3aecbbc71ba8d27f09716e2d8c5146deb56af0d5 /plugins/Boltun/src/config.cpp
parent4a34c6a6c70e52ff67d43f75ebdc68395bcc8e25 (diff)
- Boltun: code cleanup (patch from person)
git-svn-id: http://svn.miranda-ng.org/main/trunk@3156 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Boltun/src/config.cpp')
-rw-r--r--plugins/Boltun/src/config.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/plugins/Boltun/src/config.cpp b/plugins/Boltun/src/config.cpp
index 4a88bf2df3..2b4e2157e0 100644
--- a/plugins/Boltun/src/config.cpp
+++ b/plugins/Boltun/src/config.cpp
@@ -49,7 +49,7 @@ inline TCHAR* GetString(char* key, const TCHAR* def)
{
DBVARIANT dbv;
TCHAR* val;
- if (!DBGetContactSettingTString(NULL, BOLTUN_KEY, key, &dbv))
+ if (!db_get_s(NULL, BOLTUN_KEY, key, &dbv))
{
size_t len = wcslen(dbv.ptszVal) + 1;
val = new TCHAR[len];
@@ -70,7 +70,7 @@ inline const TCHAR* SetString(char* key, const TCHAR* value)
size_t len = _tcslen(value) + 1;
TCHAR* val = new TCHAR[len];
_tcscpy_s(val, len, value);
- DBWriteContactSettingTString(NULL, BOLTUN_KEY, key, val);
+ db_set_ws(NULL, BOLTUN_KEY, key, val);
return val;
}
@@ -78,14 +78,14 @@ inline const TCHAR* SetString(char* key, const TCHAR* value)
const bool BoltunConfig::Get##x() { \
return DBGetContactSettingDword(NULL, BOLTUN_KEY, str, def) != 0; } \
const bool BoltunConfig::Set##x(const bool value) { \
- DBWriteContactSettingDword(NULL, BOLTUN_KEY, str, value); \
+ db_set_dw(NULL, BOLTUN_KEY, str, value); \
return value; }
#define BUILDINTETTERS(x, str, def) \
const int BoltunConfig::Get##x() { \
return DBGetContactSettingDword(NULL, BOLTUN_KEY, str, def); } \
const int BoltunConfig::Set##x(const int value) { \
- DBWriteContactSettingDword(NULL, BOLTUN_KEY, str, value); \
+ db_set_dw(NULL, BOLTUN_KEY, str, value); \
return value; }
#define BUILDSTRETTERS(x, str, def) \