summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2012-12-01 14:07:01 +0000
committerGeorge Hazan <george.hazan@gmail.com>2012-12-01 14:07:01 +0000
commited0e4c1d9be5e715a5cfbb8968761b3990f17fe5 (patch)
tree1073d48be4f1565cad642d7a894a32f2bfe51948
parent19b4882ee4a22c61113492057e4a3450a81f2683 (diff)
macro removed
git-svn-id: http://svn.miranda-ng.org/main/trunk@2593 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
-rw-r--r--plugins/NoHistory/src/icons.cpp24
1 files changed, 13 insertions, 11 deletions
diff --git a/plugins/NoHistory/src/icons.cpp b/plugins/NoHistory/src/icons.cpp
index bb13603c41..f3f606fb45 100644
--- a/plugins/NoHistory/src/icons.cpp
+++ b/plugins/NoHistory/src/icons.cpp
@@ -20,22 +20,24 @@ void InitIcons()
sid.pszSection = MODULE;
sid.flags = SIDF_PATH_TCHAR;
- TCHAR path[MAX_PATH];
+ TCHAR path[MAX_PATH];
GetModuleFileName(hInst,path,MAX_PATH);
sid.ptszDefaultFile = path;
-#define AddIcon(x,y,z) \
- sid.pszDescription = x; \
- sid.pszName = y; \
- sid.iDefaultIndex = -z; \
- Skin_AddIcon(&sid); \
- sid.iDefaultIndex++;
+ sid.pszDescription = LPGEN("Disable");
+ sid.pszName = MODULE "_remove";
+ sid.iDefaultIndex = -IDI_HREMOVE;
+ Skin_AddIcon(&sid);
- AddIcon( LPGEN("Disable"), MODULE "_remove", IDI_HREMOVE);
- AddIcon( LPGEN("Enable"), MODULE "_keep", IDI_HKEEP);
- AddIcon( LPGEN("Clear"), MODULE "_clear", IDI_HCLEAR);
+ sid.pszDescription = LPGEN("Enable");
+ sid.pszName = MODULE "_keep";
+ sid.iDefaultIndex = -IDI_HKEEP;
+ Skin_AddIcon(&sid);
-#undef AddIcon
+ sid.pszDescription = LPGEN("Clear");
+ sid.pszName = MODULE "_clear";
+ sid.iDefaultIndex = -IDI_HCLEAR;
+ Skin_AddIcon(&sid);
ReloadIcons(0, 0);