summaryrefslogtreecommitdiff
path: root/plugins/SimpleAR/src/Main.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2018-05-18 21:56:03 +0300
committerGeorge Hazan <ghazan@miranda.im>2018-05-18 21:56:03 +0300
commitcb4d31922f0690f5a3c79526245c963bfd118864 (patch)
treea6826371092617844c19772e73bf4e5756400140 /plugins/SimpleAR/src/Main.cpp
parent37a022d37e79dbe9892f376ef7c3b6b8878c4aff (diff)
Icon_Register(g_plugin.getInst() => g_plugin.registerIcon
Icon_RegisterT(g_plugin.getInst() => g_plugin.registerIconW
Diffstat (limited to 'plugins/SimpleAR/src/Main.cpp')
-rw-r--r--plugins/SimpleAR/src/Main.cpp9
1 files changed, 4 insertions, 5 deletions
diff --git a/plugins/SimpleAR/src/Main.cpp b/plugins/SimpleAR/src/Main.cpp
index 56064ab583..98e99e3200 100644
--- a/plugins/SimpleAR/src/Main.cpp
+++ b/plugins/SimpleAR/src/Main.cpp
@@ -238,10 +238,10 @@ INT addEvent(WPARAM hContact, LPARAM hDBEvent)
/////////////////////////////////////////////////////////////////////////////////////////
-IconItemT iconList[] =
+IconItem iconList[] =
{
- { LPGENW("Disable Auto&reply"), "Disable Auto&reply", IDI_OFF },
- { LPGENW("Enable Auto&reply"), "Enable Auto&reply", IDI_ON }
+ { LPGEN("Disable Auto&reply"), "Disable Auto&reply", IDI_OFF },
+ { LPGEN("Enable Auto&reply"), "Enable Auto&reply", IDI_ON }
};
extern "C" int __declspec(dllexport)Load(void)
@@ -271,8 +271,7 @@ extern "C" int __declspec(dllexport)Load(void)
HookEvent(ME_DB_EVENT_ADDED, addEvent);
HookEvent(ME_SYSTEM_MODULESLOADED, CheckDefaults);
- Icon_RegisterT(g_plugin.getInst(), L"Simple Auto Replier", iconList, _countof(iconList));
-
+ g_plugin.registerIcon("Simple Auto Replier", iconList);
return 0;
}