summaryrefslogtreecommitdiff
path: root/src/mir_app
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2019-07-12 12:10:00 +0300
committerGeorge Hazan <ghazan@miranda.im>2019-07-12 12:10:09 +0300
commit6632ca13387288f6f2bb58d7f1aa9ea4730d9b43 (patch)
treebdf3eb3bbe7e22619e2a38ef0f9dfd61bc111adb /src/mir_app
parent7ec7170db9417db54f7fdf4febd6e24dc2d65375 (diff)
unneeded parameter removed
Diffstat (limited to 'src/mir_app')
-rw-r--r--src/mir_app/src/ei_services.cpp10
1 files changed, 5 insertions, 5 deletions
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;