summaryrefslogtreecommitdiff
path: root/protocols/Tox/src/tox_icons.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 /protocols/Tox/src/tox_icons.cpp
parent37a022d37e79dbe9892f376ef7c3b6b8878c4aff (diff)
Icon_Register(g_plugin.getInst() => g_plugin.registerIcon
Icon_RegisterT(g_plugin.getInst() => g_plugin.registerIconW
Diffstat (limited to 'protocols/Tox/src/tox_icons.cpp')
-rw-r--r--protocols/Tox/src/tox_icons.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/protocols/Tox/src/tox_icons.cpp b/protocols/Tox/src/tox_icons.cpp
index 762266799f..83c8f10f2b 100644
--- a/protocols/Tox/src/tox_icons.cpp
+++ b/protocols/Tox/src/tox_icons.cpp
@@ -1,20 +1,20 @@
#include "stdafx.h"
-IconItemT CToxProto::Icons[] =
+static IconItem iconList[] =
{
- { LPGENW("Protocol icon"), "main", IDI_TOX },
- { LPGENW("Action icon"), "main", IDI_ME },
- { LPGENW("Correction icon"), "edit", IDI_EDIT },
+ { LPGEN("Protocol icon"), "main", IDI_TOX },
+ { LPGEN("Action icon"), "main", IDI_ME },
+ { LPGEN("Correction icon"), "edit", IDI_EDIT },
};
void CToxProto::InitIcons()
{
- Icon_RegisterT(g_plugin.getInst(), LPGENW("Protocols") L"/" _A2W(MODULE), Icons, _countof(Icons), MODULE);
+ g_plugin.registerIcon(LPGEN("Protocols") "/" MODULE, iconList, MODULE);
}
HANDLE CToxProto::GetIconHandle(int iconId)
{
- for (auto &it : Icons)
+ for (auto &it : iconList)
if (it.defIconID == iconId)
return it.hIcolib;
return nullptr;
@@ -22,7 +22,7 @@ HANDLE CToxProto::GetIconHandle(int iconId)
HICON CToxProto::GetIcon(int iconId)
{
- for (auto &it : Icons)
+ for (auto &it : iconList)
if (it.defIconID == iconId)
return IcoLib_GetIconByHandle(it.hIcolib);
return nullptr;