From 53fe3e46177d17b4941610de19f5cc6210700cb4 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Mon, 12 Nov 2018 21:44:56 +0300 Subject: db_* functions replaced with g_plugin calls --- plugins/Boltun/src/config.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'plugins/Boltun/src/config.cpp') 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) \ -- cgit v1.2.3