From 1925d3521846f4e6683d3d537cc41de9c9bd7250 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Tue, 11 Feb 2014 19:01:03 +0000 Subject: "we don't need these variables" (c) Pink Floyd git-svn-id: http://svn.miranda-ng.org/main/trunk@8101 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/Twitter/src/contacts.cpp | 4 +--- protocols/Twitter/src/proto.cpp | 11 +++-------- 2 files changed, 4 insertions(+), 11 deletions(-) (limited to 'protocols/Twitter') diff --git a/protocols/Twitter/src/contacts.cpp b/protocols/Twitter/src/contacts.cpp index fb6a41135a..fe0fa53c58 100644 --- a/protocols/Twitter/src/contacts.cpp +++ b/protocols/Twitter/src/contacts.cpp @@ -183,13 +183,11 @@ HANDLE TwitterProto::GetAwayMsg(MCONTACT hContact) return (HANDLE)1; } -int TwitterProto::OnContactDeleted(WPARAM wParam,LPARAM lParam) +int TwitterProto::OnContactDeleted(WPARAM hContact, LPARAM lParam) { if(m_iStatus != ID_STATUS_ONLINE) return 0; - const MCONTACT hContact = wParam; - if(!IsMyContact(hContact)) return 0; diff --git a/protocols/Twitter/src/proto.cpp b/protocols/Twitter/src/proto.cpp index b301bc1fb3..8f02b0ba1f 100644 --- a/protocols/Twitter/src/proto.cpp +++ b/protocols/Twitter/src/proto.cpp @@ -243,11 +243,9 @@ INT_PTR TwitterProto::GetStatus(WPARAM,LPARAM) return m_iStatus; } -INT_PTR TwitterProto::ReplyToTweet(WPARAM wParam,LPARAM) +INT_PTR TwitterProto::ReplyToTweet(WPARAM hContact, LPARAM) { // TODO: support replying to tweets instead of just users - MCONTACT hContact = wParam; - HWND hDlg = CreateDialogParam(g_hInstance,MAKEINTRESOURCE(IDD_TWEET),0,tweet_proc,reinterpret_cast(this)); DBVARIANT dbv; @@ -262,10 +260,8 @@ INT_PTR TwitterProto::ReplyToTweet(WPARAM wParam,LPARAM) return 0; } -INT_PTR TwitterProto::VisitHomepage(WPARAM wParam,LPARAM) +INT_PTR TwitterProto::VisitHomepage(WPARAM hContact, LPARAM) { - MCONTACT hContact = wParam; - DBVARIANT dbv; // TODO: remove this if( !db_get_s(hContact,m_szModuleName,TWITTER_KEY_UN,&dbv)) @@ -396,9 +392,8 @@ int TwitterProto::OnPreShutdown(WPARAM,LPARAM) return 0; } -int TwitterProto::OnPrebuildContactMenu(WPARAM wParam,LPARAM) +int TwitterProto::OnPrebuildContactMenu(WPARAM hContact, LPARAM) { - MCONTACT hContact = wParam; if(IsMyContact(hContact)) ShowContactMenus(true); -- cgit v1.2.3