summaryrefslogtreecommitdiff
path: root/plugins/CyrTranslit/src
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2018-11-14 18:24:56 +0300
committerGeorge Hazan <ghazan@miranda.im>2018-11-14 18:24:56 +0300
commit68d6271552d4b9bdb27efda50c457f0d56b23457 (patch)
tree0221f56a8545815514eb3350afe92a2d0262251b /plugins/CyrTranslit/src
parent64e3214c2222543350f51b517a6b75b6b02b81cf (diff)
other minor code cleaning considering g_plugin
Diffstat (limited to 'plugins/CyrTranslit/src')
-rw-r--r--plugins/CyrTranslit/src/MirandaContact.cpp6
-rw-r--r--plugins/CyrTranslit/src/MirandaContact.h1
2 files changed, 2 insertions, 5 deletions
diff --git a/plugins/CyrTranslit/src/MirandaContact.cpp b/plugins/CyrTranslit/src/MirandaContact.cpp
index 4d981e3b60..444c2bae39 100644
--- a/plugins/CyrTranslit/src/MirandaContact.cpp
+++ b/plugins/CyrTranslit/src/MirandaContact.cpp
@@ -22,8 +22,6 @@
namespace CyrTranslit
{
-const char* MirandaContact::SETTINGS_MODULE = "CyrTranslit";
-
const char* MirandaContact::SETTING_SHOULD_TRANSLITERATE = "translit";
char *MirandaContact::MENU_ITEM_TEXT = LPGEN("&Transliterate");
@@ -49,14 +47,14 @@ void MirandaContact::initialize()
bool MirandaContact::bIsActive(MCONTACT hContact)
{
- return db_get_b(hContact, SETTINGS_MODULE, SETTING_SHOULD_TRANSLITERATE, 0) != 0;
+ return g_plugin.getBool(hContact, SETTING_SHOULD_TRANSLITERATE, 0);
}
//------------------------------------------------------------------------------
void MirandaContact::save(MCONTACT hContact, bool bValue)
{
- db_set_b(hContact, SETTINGS_MODULE, SETTING_SHOULD_TRANSLITERATE, bValue);
+ g_plugin.setByte(hContact, SETTING_SHOULD_TRANSLITERATE, bValue);
}
//------------------------------------------------------------------------------
diff --git a/plugins/CyrTranslit/src/MirandaContact.h b/plugins/CyrTranslit/src/MirandaContact.h
index 4760d8f836..ee7309fd7d 100644
--- a/plugins/CyrTranslit/src/MirandaContact.h
+++ b/plugins/CyrTranslit/src/MirandaContact.h
@@ -52,7 +52,6 @@ public:
static void save(MCONTACT hContact, bool bValue);
private:
- static const char* SETTINGS_MODULE;
static const char* SETTING_SHOULD_TRANSLITERATE;
static char *MENU_ITEM_TEXT;