diff options
author | George Hazan <george.hazan@gmail.com> | 2014-01-02 11:16:20 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2014-01-02 11:16:20 +0000 |
commit | 191225371df87bc9c983d260c0bd50a59bbdd927 (patch) | |
tree | 21c37d03fa29d64f347e3c3b80c6d275eeb6b738 /src/modules/extraicons/CallbackExtraIcon.cpp | |
parent | bea9db47cd38198c8fb0ba276f5dba3004c5e2fa (diff) |
various garbage cleaning in extra icons
git-svn-id: http://svn.miranda-ng.org/main/trunk@7451 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'src/modules/extraicons/CallbackExtraIcon.cpp')
-rw-r--r-- | src/modules/extraicons/CallbackExtraIcon.cpp | 15 |
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)
|