From 7555d4a9c79be387c6c151db7aa2ff26016e382b Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sat, 30 Mar 2013 19:00:03 +0000 Subject: code cleaning git-svn-id: http://svn.miranda-ng.org/main/trunk@4258 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/NewsAggregator/Src/Icons.cpp | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) (limited to 'plugins/NewsAggregator/Src/Icons.cpp') diff --git a/plugins/NewsAggregator/Src/Icons.cpp b/plugins/NewsAggregator/Src/Icons.cpp index d6714cc37c..3fda249194 100644 --- a/plugins/NewsAggregator/Src/Icons.cpp +++ b/plugins/NewsAggregator/Src/Icons.cpp @@ -21,14 +21,14 @@ Boston, MA 02111-1307, USA. static IconItem iconList[] = { - {LPGEN("Protocol icon"), "main", IDI_ICON}, - {LPGEN("Check All Feeds"), "checkall", IDI_CHECKALL}, - {LPGEN("Add Feed"), "addfeed", IDI_ADDFEED}, - {LPGEN("Import Feeds"), "importfeeds", IDI_IMPORTFEEDS}, - {LPGEN("Export Feeds"), "exportfeeds", IDI_EXPORTFEEDS}, - {LPGEN("Check Feed"), "checkfeed", IDI_CHECKALL}, - {LPGEN("Auto Update Enabled"), "enabled", IDI_ENABLED}, - {LPGEN("Auto Update Disabled"), "disabled", IDI_DISABLED} + { LPGEN("Protocol icon"), "main", IDI_ICON}, + { LPGEN("Check All Feeds"), "checkall", IDI_CHECKALL}, + { LPGEN("Add Feed"), "addfeed", IDI_ADDFEED}, + { LPGEN("Import Feeds"), "importfeeds", IDI_IMPORTFEEDS}, + { LPGEN("Export Feeds"), "exportfeeds", IDI_EXPORTFEEDS}, + { LPGEN("Check Feed"), "checkfeed", IDI_CHECKALL}, + { LPGEN("Auto Update Enabled"), "enabled", IDI_ENABLED}, + { LPGEN("Auto Update Disabled"), "disabled", IDI_DISABLED} }; VOID InitIcons() @@ -36,18 +36,18 @@ VOID InitIcons() Icon_Register(hInst, LPGEN("News Aggregator"), iconList, SIZEOF(iconList), MODULE); } -HICON LoadIconEx(const char* name, BOOL big) +HICON LoadIconEx(const char *name, BOOL big) { char szSettingName[100]; mir_snprintf(szSettingName, SIZEOF(szSettingName), "%s_%s", MODULE, name); return Skin_GetIcon(szSettingName, big); } -HANDLE GetIconHandle(const char* name) +HANDLE GetIconHandle(const char *name) { for (int i=0; i < SIZEOF(iconList); i++) - if (strcmp(iconList[i].szName, name) == 0) + if ( !strcmp(iconList[i].szName, name)) return iconList[i].hIcolib; return NULL; -} \ No newline at end of file +} -- cgit v1.2.3