summaryrefslogtreecommitdiff
path: root/src/modules/extraicons/CallbackExtraIcon.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/extraicons/CallbackExtraIcon.cpp')
-rw-r--r--src/modules/extraicons/CallbackExtraIcon.cpp15
1 files changed, 7 insertions, 8 deletions
diff --git a/src/modules/extraicons/CallbackExtraIcon.cpp b/src/modules/extraicons/CallbackExtraIcon.cpp
index 3e7229d5ca..b271aef8bb 100644
--- a/src/modules/extraicons/CallbackExtraIcon.cpp
+++ b/src/modules/extraicons/CallbackExtraIcon.cpp
@@ -23,10 +23,10 @@ Boston, MA 02111-1307, USA.
#include "extraicons.h"
-CallbackExtraIcon::CallbackExtraIcon(int id, const char *name, const TCHAR *description, const char *descIcon,
- MIRANDAHOOK RebuildIcons, MIRANDAHOOK ApplyIcon, MIRANDAHOOKPARAM OnClick, LPARAM param) :
- BaseExtraIcon(id, name, description, descIcon, OnClick, param), RebuildIcons(RebuildIcons), ApplyIcon(ApplyIcon),
- needToRebuild(true)
+CallbackExtraIcon::CallbackExtraIcon(int _id, const char *_name, const TCHAR *_description, const char *_descIcon,
+ MIRANDAHOOK _RebuildIcons, MIRANDAHOOK _ApplyIcon, MIRANDAHOOKPARAM _OnClick, LPARAM _param) :
+ BaseExtraIcon(_id, _name, _description, _descIcon, _OnClick, _param),
+ RebuildIcons(_RebuildIcons), ApplyIcon(_ApplyIcon), needToRebuild(true)
{
}
@@ -41,13 +41,12 @@ int CallbackExtraIcon::getType() const
void CallbackExtraIcon::rebuildIcons()
{
- if (!isEnabled())
- {
+ if (!isEnabled()) {
needToRebuild = true;
return;
}
- needToRebuild = false;
+ needToRebuild = false;
RebuildIcons(0, 0);
}
@@ -59,7 +58,7 @@ void CallbackExtraIcon::applyIcon(HANDLE hContact)
if (needToRebuild)
rebuildIcons();
- ApplyIcon((WPARAM) hContact, 0);
+ ApplyIcon((WPARAM)hContact, 0);
}
int CallbackExtraIcon::setIcon(int id, HANDLE hContact, HANDLE icon)