From 869094d2aabef8ab10a1178907cb31ae84f504f9 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Tue, 22 May 2018 16:28:18 +0300 Subject: IcoLib_AddIcon => CMPlugin::addIcon --- plugins/UserInfoEx/src/Flags/svc_flagsicons.cpp | 2 +- plugins/UserInfoEx/src/classPsTreeItem.cpp | 2 +- plugins/UserInfoEx/src/mir_icolib.cpp | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) (limited to 'plugins/UserInfoEx') diff --git a/plugins/UserInfoEx/src/Flags/svc_flagsicons.cpp b/plugins/UserInfoEx/src/Flags/svc_flagsicons.cpp index 751d6f8d19..405f2a6f07 100644 --- a/plugins/UserInfoEx/src/Flags/svc_flagsicons.cpp +++ b/plugins/UserInfoEx/src/Flags/svc_flagsicons.cpp @@ -355,7 +355,7 @@ void InitIcons() sid.hDefaultIcon = ImageList_ExtractIcon(NULL, himl, index); index = CountryNumberToIndex(countries[i].id); - phIconHandles[index] = IcoLib_AddIcon(&sid); + phIconHandles[index] = g_plugin.addIcon(&sid); if (sid.hDefaultIcon != nullptr) DestroyIcon(sid.hDefaultIcon); mir_free(sid.description.w); sid.description.w = nullptr; diff --git a/plugins/UserInfoEx/src/classPsTreeItem.cpp b/plugins/UserInfoEx/src/classPsTreeItem.cpp index 5a40b27b19..2645b3f8d7 100644 --- a/plugins/UserInfoEx/src/classPsTreeItem.cpp +++ b/plugins/UserInfoEx/src/classPsTreeItem.cpp @@ -351,7 +351,7 @@ int CPsTreeItem::Icon(HIMAGELIST hIml, OPTIONSDIALOGPAGE *odp, BYTE bInitIconsOn sid.hDefaultIcon = ImageList_GetIcon(hIml, 0, ILD_NORMAL), bNeedFree = true; } // add file to icolib - IcoLib_AddIcon(&sid); + g_plugin.addIcon(&sid); if (!bInitIconsOnly) hIcon = IcoLib_GetIcon(pszIconName); diff --git a/plugins/UserInfoEx/src/mir_icolib.cpp b/plugins/UserInfoEx/src/mir_icolib.cpp index 998fb45807..dea1d2d8f8 100644 --- a/plugins/UserInfoEx/src/mir_icolib.cpp +++ b/plugins/UserInfoEx/src/mir_icolib.cpp @@ -260,7 +260,7 @@ static HANDLE IcoLib_RegisterIconHandleEx(LPSTR szIconID, LPSTR szDescription, L sid.hDefaultIcon = hDefIcon; sid.iDefaultIndex = -1; } - hIconHandle = IcoLib_AddIcon(&sid); + hIconHandle = g_plugin.addIcon(&sid); } MIR_FREE(sid.description.w); MIR_FREE(sid.section.w); -- cgit v1.2.3