From 68d3fd47bb9b75e65859d14199ffee01f16ac9a7 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Mon, 10 Feb 2014 20:47:51 +0000 Subject: HCONTACT is not needed anymore git-svn-id: http://svn.miranda-ng.org/main/trunk@8086 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/CyrTranslit/src/MirandaContact.cpp | 8 ++++---- plugins/CyrTranslit/src/MirandaContact.h | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) (limited to 'plugins/CyrTranslit') diff --git a/plugins/CyrTranslit/src/MirandaContact.cpp b/plugins/CyrTranslit/src/MirandaContact.cpp index a42cc054de..3114a0b4e2 100644 --- a/plugins/CyrTranslit/src/MirandaContact.cpp +++ b/plugins/CyrTranslit/src/MirandaContact.cpp @@ -47,14 +47,14 @@ void MirandaContact::initialize() //------------------------------------------------------------------------------ -bool MirandaContact::bIsActive(HCONTACT hContact) +bool MirandaContact::bIsActive(MCONTACT hContact) { return db_get_b(hContact, SETTINGS_MODULE, SETTING_SHOULD_TRANSLITERATE, 0) != 0; } //------------------------------------------------------------------------------ -void MirandaContact::save(HCONTACT hContact, bool bValue) +void MirandaContact::save(MCONTACT hContact, bool bValue) { db_set_b(hContact, SETTINGS_MODULE, SETTING_SHOULD_TRANSLITERATE, bValue); } @@ -80,7 +80,7 @@ void MirandaContact::addMenuItem() INT_PTR MirandaContact::onMenuCommandTransliterate(WPARAM wParam, LPARAM lParam) { - HCONTACT hContact = HCONTACT(wParam); + MCONTACT hContact = MCONTACT(wParam); if (!CallService(MS_DB_CONTACT_IS, wParam, 0)) return 0; @@ -93,7 +93,7 @@ INT_PTR MirandaContact::onMenuCommandTransliterate(WPARAM wParam, LPARAM lParam) int MirandaContact::onPreBuildContactMenu(WPARAM wParam, LPARAM lParam) { if (!hTransliterateCmdMenuItem) return 0; - HCONTACT hContact = HCONTACT(wParam); + MCONTACT hContact = MCONTACT(wParam); if (!CallService(MS_DB_CONTACT_IS, wParam, 0)) return 0; CLISTMENUITEM mi = { sizeof(mi) }; diff --git a/plugins/CyrTranslit/src/MirandaContact.h b/plugins/CyrTranslit/src/MirandaContact.h index cad1b7f516..19e313ae1a 100644 --- a/plugins/CyrTranslit/src/MirandaContact.h +++ b/plugins/CyrTranslit/src/MirandaContact.h @@ -42,14 +42,14 @@ public: * @param hContact The handle of the contact object to be instantiated. * @return The Miranda IM contact having the passed handle. */ - static bool bIsActive(HCONTACT hContact); + static bool bIsActive(MCONTACT hContact); /** * Saves this object's data to the persistent storage -- the Miranda * database. This information may be retreived later on by means of * getContact() factory method invocation. */ - static void save(HCONTACT hContact, bool bValue); + static void save(MCONTACT hContact, bool bValue); private: static const char* SETTINGS_MODULE; -- cgit v1.2.3