From f3b0cce816e602fbafb0fc018a3c13a8fb51b1b3 Mon Sep 17 00:00:00 2001 From: MikalaiR Date: Mon, 4 May 2015 16:00:18 +0000 Subject: SkypeWeb: Cleanup. git-svn-id: http://svn.miranda-ng.org/main/trunk@13425 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/SkypeWeb/src/skype_accounts.cpp | 2 +- protocols/SkypeWeb/src/skype_proto.cpp | 2 -- protocols/SkypeWeb/src/skype_proto.h | 1 - protocols/SkypeWeb/src/skype_utils.cpp | 4 ++-- protocols/SkypeWeb/src/stdafx.h | 2 +- 5 files changed, 4 insertions(+), 7 deletions(-) (limited to 'protocols/SkypeWeb/src') diff --git a/protocols/SkypeWeb/src/skype_accounts.cpp b/protocols/SkypeWeb/src/skype_accounts.cpp index 16eefcad3a..c3a04aaaef 100644 --- a/protocols/SkypeWeb/src/skype_accounts.cpp +++ b/protocols/SkypeWeb/src/skype_accounts.cpp @@ -17,7 +17,7 @@ along with this program. If not, see . #include "stdafx.h" -LIST CSkypeProto::Accounts(1, CSkypeProto::CompareAccounts); +LIST Accounts(1, CSkypeProto::CompareAccounts); int CSkypeProto::CompareAccounts(const CSkypeProto *p1, const CSkypeProto *p2) { diff --git a/protocols/SkypeWeb/src/skype_proto.cpp b/protocols/SkypeWeb/src/skype_proto.cpp index 08ee6eabad..f21e2e9e3e 100644 --- a/protocols/SkypeWeb/src/skype_proto.cpp +++ b/protocols/SkypeWeb/src/skype_proto.cpp @@ -71,8 +71,6 @@ PROTO(protoName, userName), password(NULL) //sounds SkinAddNewSoundEx("skype_inc_call", "SkypeWeb", LPGEN("Incoming call sound") ); SkinAddNewSoundEx("skype_call_canceled", "SkypeWeb", LPGEN("Incoming call canceled sound") ); - - skypeInstances.insert(this); } CSkypeProto::~CSkypeProto() diff --git a/protocols/SkypeWeb/src/skype_proto.h b/protocols/SkypeWeb/src/skype_proto.h index 9c9ac6df8a..cd358905aa 100644 --- a/protocols/SkypeWeb/src/skype_proto.h +++ b/protocols/SkypeWeb/src/skype_proto.h @@ -103,7 +103,6 @@ private: m_hPopupClassCall; // accounts - static LIST Accounts; char *Server, *RegToken, *TokenSecret, *EndpointId, *SelfSkypeName; diff --git a/protocols/SkypeWeb/src/skype_utils.cpp b/protocols/SkypeWeb/src/skype_utils.cpp index eb132943a7..00b42fb4f0 100644 --- a/protocols/SkypeWeb/src/skype_utils.cpp +++ b/protocols/SkypeWeb/src/skype_utils.cpp @@ -743,9 +743,9 @@ void CSkypeProto::ProcessTimer() static VOID CALLBACK TimerProc(HWND, UINT, UINT_PTR, DWORD) { - for (int i = 0; i < skypeInstances.getCount(); i++) + for (int i = 0; i < Accounts.getCount(); i++) { - skypeInstances[i]->ProcessTimer(); + Accounts[i]->ProcessTimer(); } } diff --git a/protocols/SkypeWeb/src/stdafx.h b/protocols/SkypeWeb/src/stdafx.h index dd1b5411d3..8a88f3e054 100644 --- a/protocols/SkypeWeb/src/stdafx.h +++ b/protocols/SkypeWeb/src/stdafx.h @@ -62,7 +62,7 @@ struct CSkypeProto; extern HINSTANCE g_hInstance; extern char g_szMirVer[]; -extern LIST skypeInstances; +extern LIST Accounts; #define SKYPE_ENDPOINTS_HOST "client-s.gateway.messenger.live.com" -- cgit v1.2.3