From f63eb2bfc28dff8bbf9d56dd57b2bc6b53487f56 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Mon, 29 May 2017 23:45:19 +0300 Subject: Skype: - fixes #829; - massive code cleaning --- protocols/SkypeWeb/src/skype_popups.cpp | 25 +++++++++---------------- 1 file changed, 9 insertions(+), 16 deletions(-) (limited to 'protocols/SkypeWeb/src/skype_popups.cpp') diff --git a/protocols/SkypeWeb/src/skype_popups.cpp b/protocols/SkypeWeb/src/skype_popups.cpp index d3ffa065b3..4babb8941c 100644 --- a/protocols/SkypeWeb/src/skype_popups.cpp +++ b/protocols/SkypeWeb/src/skype_popups.cpp @@ -42,9 +42,7 @@ void CSkypeProto::InitPopups() void CSkypeProto::UninitPopups() { for (int i = 0; i < m_PopupClasses.getCount(); i++) - { Popup_UnregisterClass(m_PopupClasses[i]); - } } void CSkypeProto::ShowNotification(const wchar_t *caption, const wchar_t *message, MCONTACT hContact, int type) @@ -55,23 +53,18 @@ void CSkypeProto::ShowNotification(const wchar_t *caption, const wchar_t *messag if (ServiceExists(MS_POPUP_ADDPOPUPCLASS)) { CMStringA className(FORMAT, "%s_", m_szModuleName); - switch (type) - { + switch (type) { case 1: - { - className.Append("Error"); - break; - } + className.Append("Error"); + break; + case SKYPE_DB_EVENT_TYPE_INCOMING_CALL: - { - className.Append("Call"); - break; - } + className.Append("Call"); + break; + default: - { - className.Append("Notification"); - break; - } + className.Append("Notification"); + break; } POPUPDATACLASS ppd = { sizeof(ppd) }; -- cgit v1.2.3