From 35d5b1cc47ac444524c087615033d5856f8a5dc3 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Thu, 10 Apr 2025 16:45:33 +0300 Subject: no need to declare the same template in each protocol --- protocols/Twitter/src/theme.cpp | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) (limited to 'protocols/Twitter/src/theme.cpp') diff --git a/protocols/Twitter/src/theme.cpp b/protocols/Twitter/src/theme.cpp index 378e57447e..7470ea1a38 100644 --- a/protocols/Twitter/src/theme.cpp +++ b/protocols/Twitter/src/theme.cpp @@ -55,13 +55,6 @@ static HGENMENU g_hMenuItems[2]; // Helper functions -template -INT_PTR GlobalService(WPARAM hContact, LPARAM lParam) -{ - CTwitterProto *proto = CMPlugin::getInstance(MCONTACT(hContact)); - return proto ? (proto->*Fcn)(hContact, lParam) : 0; -} - static int PrebuildContactMenu(WPARAM hContact, LPARAM lParam) { ShowContactMenus(false); @@ -70,7 +63,7 @@ static int PrebuildContactMenu(WPARAM hContact, LPARAM lParam) return proto ? proto->OnPrebuildContactMenu(hContact, lParam) : 0; } -void InitContactMenus() +void CTwitterProto::InitContactMenus() { HookEvent(ME_CLIST_PREBUILDCONTACTMENU, PrebuildContactMenu); -- cgit v1.2.3