diff options
author | George Hazan <ghazan@miranda.im> | 2018-11-12 21:44:56 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2018-11-12 21:44:56 +0300 |
commit | 53fe3e46177d17b4941610de19f5cc6210700cb4 (patch) | |
tree | b67a6bc208dad141f9db14035cd7e42ff2a51872 /plugins/Boltun/src | |
parent | 488214ac8af0c4aeb1a5c1d8fd48368daaf4c4c7 (diff) |
db_* functions replaced with g_plugin calls
Diffstat (limited to 'plugins/Boltun/src')
-rw-r--r-- | plugins/Boltun/src/actionQueue.cpp | 2 | ||||
-rw-r--r-- | plugins/Boltun/src/config.cpp | 10 |
2 files changed, 6 insertions, 6 deletions
diff --git a/plugins/Boltun/src/actionQueue.cpp b/plugins/Boltun/src/actionQueue.cpp index d75952e392..1fd7834008 100644 --- a/plugins/Boltun/src/actionQueue.cpp +++ b/plugins/Boltun/src/actionQueue.cpp @@ -77,7 +77,7 @@ static bool NotifyTyping(MCONTACT hContact) {
int res = db_get_b(hContact, "SRMsg", "SupportTyping", 2);
if (res == 2)
- res = db_get_b(NULL, "SRMsg", "DefaultTyping", 1);
+ res = db_get_b(0, "SRMsg", "DefaultTyping", 1);
return res != 0;
}
diff --git a/plugins/Boltun/src/config.cpp b/plugins/Boltun/src/config.cpp index 314ff43ce1..700a8b5014 100644 --- a/plugins/Boltun/src/config.cpp +++ b/plugins/Boltun/src/config.cpp @@ -61,22 +61,22 @@ inline const wchar_t* SetString(char* key, const wchar_t* value) size_t len = mir_wstrlen(value) + 1;
wchar_t* val = new wchar_t[len];
wcscpy_s(val, len, value);
- db_set_ws(NULL, BOLTUN_KEY, key, val);
+ db_set_ws(0, BOLTUN_KEY, key, val);
return val;
}
#define BUILDETTERS(x, str, def) \
const bool BoltunConfig::Get##x() { \
- return db_get_dw(NULL, BOLTUN_KEY, str, def) != 0; } \
+ return db_get_dw(0, BOLTUN_KEY, str, def) != 0; } \
const bool BoltunConfig::Set##x(const bool value) { \
- db_set_dw(NULL, BOLTUN_KEY, str, value); \
+ db_set_dw(0, BOLTUN_KEY, str, value); \
return value; }
#define BUILDINTETTERS(x, str, def) \
const int BoltunConfig::Get##x() { \
- return db_get_dw(NULL, BOLTUN_KEY, str, def); } \
+ return db_get_dw(0, BOLTUN_KEY, str, def); } \
const int BoltunConfig::Set##x(const int value) { \
- db_set_dw(NULL, BOLTUN_KEY, str, value); \
+ db_set_dw(0, BOLTUN_KEY, str, value); \
return value; }
#define BUILDSTRETTERS(x, str, def) \
|