diff options
author | George Hazan <ghazan@miranda.im> | 2017-05-29 23:45:19 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2017-05-29 23:45:19 +0300 |
commit | f63eb2bfc28dff8bbf9d56dd57b2bc6b53487f56 (patch) | |
tree | f2c2a56e945fc1ea44d5f22f95cd397a0d251fa2 /protocols/SkypeWeb/src/skype_popups.cpp | |
parent | 133826f5022c5b0d9beca9285d66afcb604e2fc4 (diff) |
Skype:
- fixes #829;
- massive code cleaning
Diffstat (limited to 'protocols/SkypeWeb/src/skype_popups.cpp')
-rw-r--r-- | protocols/SkypeWeb/src/skype_popups.cpp | 25 |
1 files changed, 9 insertions, 16 deletions
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) };
|