From 6632ca13387288f6f2bb58d7f1aa9ea4730d9b43 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Fri, 12 Jul 2019 12:10:00 +0300 Subject: unneeded parameter removed --- src/mir_app/src/ei_services.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/mir_app') diff --git a/src/mir_app/src/ei_services.cpp b/src/mir_app/src/ei_services.cpp index ab09af39ca..82f83ecc0c 100644 --- a/src/mir_app/src/ei_services.cpp +++ b/src/mir_app/src/ei_services.cpp @@ -308,13 +308,13 @@ MIR_APP_DLL(void) ExtraIcon_SetAll(MCONTACT hContact) /////////////////////////////////////////////////////////////////////////////// // external functions -static void EI_PostCreate(BaseExtraIcon *extra, const char *name, int flags) +static void EI_PostCreate(BaseExtraIcon *extra, int flags) { char setting[512]; - mir_snprintf(setting, "Position_%s", name); + mir_snprintf(setting, "Position_%s", extra->getName()); extra->setPosition(db_get_w(0, EI_MODULE_NAME, setting, 1000)); - mir_snprintf(setting, "Slot_%s", name); + mir_snprintf(setting, "Slot_%s", extra->getName()); int slot = db_get_w(0, EI_MODULE_NAME, setting, -100); if (slot == EMPTY_EXTRA_ICON) slot = -1; @@ -368,7 +368,7 @@ EXTERN_C MIR_APP_DLL(HANDLE) ExtraIcon_RegisterCallback(const char *name, const BaseExtraIcon *extra = new CallbackExtraIcon(name, tszDesc, descIcon, RebuildIcons, ApplyIcon, OnClick, onClickParam); extra->m_pPlugin = &GetPluginByInstance(GetInstByAddress(RebuildIcons)); - EI_PostCreate(extra, name, flags); + EI_PostCreate(extra, flags); return extra; } @@ -401,7 +401,7 @@ EXTERN_C MIR_APP_DLL(HANDLE) ExtraIcon_RegisterIcolib(const char *name, const ch else { extra = new IcolibExtraIcon(name, tszDesc, descIcon, OnClick, onClickParam); extra->m_pPlugin = &GetPluginByInstance(GetInstByAddress((void*)name)); - EI_PostCreate(extra, name, flags); + EI_PostCreate(extra, flags); } return extra; -- cgit v1.2.3