diff options
author | George Hazan <ghazan@miranda.im> | 2018-05-18 21:56:03 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2018-05-18 21:56:03 +0300 |
commit | cb4d31922f0690f5a3c79526245c963bfd118864 (patch) | |
tree | a6826371092617844c19772e73bf4e5756400140 /protocols/Omegle/src/theme.cpp | |
parent | 37a022d37e79dbe9892f376ef7c3b6b8878c4aff (diff) |
Icon_Register(g_plugin.getInst() => g_plugin.registerIcon
Icon_RegisterT(g_plugin.getInst() => g_plugin.registerIconW
Diffstat (limited to 'protocols/Omegle/src/theme.cpp')
-rw-r--r-- | protocols/Omegle/src/theme.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/protocols/Omegle/src/theme.cpp b/protocols/Omegle/src/theme.cpp index 72af5190f4..fe8e19ca49 100644 --- a/protocols/Omegle/src/theme.cpp +++ b/protocols/Omegle/src/theme.cpp @@ -22,7 +22,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. #include "stdafx.h"
-static IconItem icons[] =
+static IconItem iconList[] =
{
{ LPGEN("Omegle Icon"), "omegle", IDI_OMEGLE },
{ LPGEN("Stranger is typing"), "typing_on", IDI_TYPING_ON },
@@ -31,14 +31,14 @@ static IconItem icons[] = void InitIcons(void)
{
- Icon_Register(g_plugin.getInst(), "Protocols/Omegle", icons, _countof(icons), "Omegle");
+ g_plugin.registerIcon("Protocols/Omegle", iconList, "Omegle");
}
HANDLE GetIconHandle(const char* name)
{
- for (size_t i = 0; i < _countof(icons); i++)
- if (mir_strcmp(icons[i].szName, name) == 0)
- return icons[i].hIcolib;
+ for (auto &it : iconList)
+ if (mir_strcmp(it.szName, name) == 0)
+ return it.hIcolib;
return nullptr;
}
|