From ca9273fc0782ee1f4d89de9e3b6bcadf2208bd10 Mon Sep 17 00:00:00 2001 From: George Hazan <george.hazan@gmail.com> Date: Thu, 2 Jan 2014 12:02:46 +0000 Subject: name conflict resolution git-svn-id: http://svn.miranda-ng.org/main/trunk@7454 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- src/modules/extraicons/BaseExtraIcon.cpp | 6 +++--- src/modules/extraicons/extraicons.cpp | 12 ++++++------ 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/src/modules/extraicons/BaseExtraIcon.cpp b/src/modules/extraicons/BaseExtraIcon.cpp index 5d9caf76ac..0baffeba67 100644 --- a/src/modules/extraicons/BaseExtraIcon.cpp +++ b/src/modules/extraicons/BaseExtraIcon.cpp @@ -34,10 +34,10 @@ BaseExtraIcon::~BaseExtraIcon() { } -void BaseExtraIcon::setOnClick(MIRANDAHOOKPARAM OnClick, LPARAM param) +void BaseExtraIcon::setOnClick(MIRANDAHOOKPARAM pFunc, LPARAM pParam) { - OnClick = OnClick; - onClickParam = param; + OnClick = pFunc; + onClickParam = pParam; } int BaseExtraIcon::getID() const diff --git a/src/modules/extraicons/extraicons.cpp b/src/modules/extraicons/extraicons.cpp index 420be4b808..332d6f92f4 100644 --- a/src/modules/extraicons/extraicons.cpp +++ b/src/modules/extraicons/extraicons.cpp @@ -357,17 +357,17 @@ INT_PTR ExtraIcon_Register(WPARAM wParam, LPARAM lParam) if (wParam == 0) return 0; - EXTRAICON_INFO *ei = (EXTRAICON_INFO *) wParam; + EXTRAICON_INFO *ei = (EXTRAICON_INFO *)wParam; if (ei->cbSize < (int)sizeof(EXTRAICON_INFO)) return 0; if (ei->type != EXTRAICON_TYPE_CALLBACK && ei->type != EXTRAICON_TYPE_ICOLIB) return 0; - if ( IsEmpty(ei->name) || IsEmpty(ei->description)) + if (IsEmpty(ei->name) || IsEmpty(ei->description)) return 0; if (ei->type == EXTRAICON_TYPE_CALLBACK && (ei->ApplyIcon == NULL || ei->RebuildIcons == NULL)) return 0; - ptrT tszDesc( mir_a2t(ei->description)); + ptrT tszDesc(mir_a2t(ei->description)); TCHAR *desc = TranslateTH(lParam, tszDesc); BaseExtraIcon *extra = GetExtraIconByName(ei->name); @@ -376,7 +376,7 @@ INT_PTR ExtraIcon_Register(WPARAM wParam, LPARAM lParam) return 0; // Found one, now merge it - if ( _tcsicmp(extra->getDescription(), desc)) { + if (_tcsicmp(extra->getDescription(), desc)) { CMString newDesc = extra->getDescription(); newDesc += _T(" / "); newDesc += desc; @@ -420,7 +420,7 @@ INT_PTR ExtraIcon_Register(WPARAM wParam, LPARAM lParam) mir_snprintf(setting, SIZEOF(setting), "Slot_%s", ei->name); int slot = db_get_w(NULL, MODULE_NAME, setting, 1); - if (slot == (WORD) -1) + if (slot == (WORD)-1) slot = -1; extra->setSlot(slot); @@ -447,7 +447,7 @@ INT_PTR ExtraIcon_Register(WPARAM wParam, LPARAM lParam) extra->rebuildIcons(); slot = 0; - for (int i=0; i < extraIconsBySlot.getCount(); i++) { + for (int i = 0; i < extraIconsBySlot.getCount(); i++) { ExtraIcon *ex = extraIconsBySlot[i]; if (ex->getSlot() < 0) continue; -- cgit v1.2.3