summaryrefslogtreecommitdiff
path: root/protocols/SkypeClassic/src/skypesvc.cpp
diff options
context:
space:
mode:
authorTobias Weimer <wishmaster51@googlemail.com>2014-11-18 18:53:15 +0000
committerTobias Weimer <wishmaster51@googlemail.com>2014-11-18 18:53:15 +0000
commita01e122eb5f84cf7fb2b704ae91556e6f6e4f6ef (patch)
tree43f80b6df32c32b8b4a85b3d6223a9bcad90d023 /protocols/SkypeClassic/src/skypesvc.cpp
parent4491b4f5a8964a02784744de83902e1ca93013f7 (diff)
SkypeClassic
-Minor cleanup git-svn-id: http://svn.miranda-ng.org/main/trunk@11014 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/SkypeClassic/src/skypesvc.cpp')
-rw-r--r--protocols/SkypeClassic/src/skypesvc.cpp18
1 files changed, 7 insertions, 11 deletions
diff --git a/protocols/SkypeClassic/src/skypesvc.cpp b/protocols/SkypeClassic/src/skypesvc.cpp
index f8ad3aa44f..b7ed84be4d 100644
--- a/protocols/SkypeClassic/src/skypesvc.cpp
+++ b/protocols/SkypeClassic/src/skypesvc.cpp
@@ -88,8 +88,8 @@ void HookEvents(void)
//HookEvent(ME_CLIST_DOUBLECLICKED, ClistDblClick);
HookEvent(ME_OPT_INITIALISE, RegisterOptions);
HookEvent(ME_DB_CONTACT_ADDED,HookContactAdded);
- HookEvent( ME_DB_CONTACT_DELETED, HookContactDeleted );
- HookEvent( ME_SYSTEM_MODULESLOADED, OnModulesLoaded);
+ HookEvent(ME_DB_CONTACT_DELETED, HookContactDeleted );
+ HookEvent(ME_SYSTEM_MODULESLOADED, OnModulesLoaded);
HookEvent(ME_SYSTEM_OKTOEXIT, MirandaExit);
HookEvent(ME_SYSTEM_PRESHUTDOWN, OkToExit);
}
@@ -98,15 +98,13 @@ void HookEventsLoaded(void)
{
// We cannot check for the TTB-service before this event gets fired... :-/
HookEvent(ME_TTB_MODULELOADED, CreateTopToolbarButton);
- HookEvent( ME_USERINFO_INITIALISE, OnDetailsInit );
+ HookEvent(ME_USERINFO_INITIALISE, OnDetailsInit );
}
-INT_PTR SkypeGetCaps(WPARAM wParam, LPARAM lParam)
+INT_PTR SkypeGetCaps(WPARAM wParam, LPARAM)
{
int ret = 0;
- UNREFERENCED_PARAMETER(lParam);
-
switch (wParam) {
case PFLAGNUM_1:
ret = PF1_BASICSEARCH | PF1_IM | PF1_MODEMSG | PF1_SEARCHBYEMAIL; // | PF1_AUTHREQ;
@@ -155,17 +153,15 @@ INT_PTR SkypeGetName(WPARAM wParam, LPARAM lParam)
}
-INT_PTR SkypeLoadIcon(WPARAM wParam,LPARAM lParam)
+INT_PTR SkypeLoadIcon(WPARAM wParam,LPARAM)
{
UINT id;
- UNREFERENCED_PARAMETER(lParam);
-
switch(wParam&0xFFFF) {
case PLI_PROTOCOL: id=IDI_SKYPE; break; // IDI_MAIN is the main icon for the protocol
- default: return (int)(HICON)NULL;
+ default: return 0;
}
- return (int)LoadImage(hInst,MAKEINTRESOURCE(id),IMAGE_ICON,GetSystemMetrics(wParam&PLIF_SMALL?SM_CXSMICON:SM_CXICON),GetSystemMetrics(wParam&PLIF_SMALL?SM_CYSMICON:SM_CYICON),0);
+ return (INT_PTR)LoadImage(hInst,MAKEINTRESOURCE(id),IMAGE_ICON,GetSystemMetrics(wParam&PLIF_SMALL?SM_CXSMICON:SM_CXICON),GetSystemMetrics(wParam&PLIF_SMALL?SM_CYSMICON:SM_CYICON),0);
}
INT_PTR SkypeGetAvatar(WPARAM wParam,LPARAM lParam)