From 68d6271552d4b9bdb27efda50c457f0d56b23457 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Wed, 14 Nov 2018 18:24:56 +0300 Subject: other minor code cleaning considering g_plugin --- plugins/CyrTranslit/src/MirandaContact.cpp | 6 ++---- plugins/CyrTranslit/src/MirandaContact.h | 1 - 2 files changed, 2 insertions(+), 5 deletions(-) (limited to 'plugins/CyrTranslit/src') 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; -- cgit v1.2.3