summaryrefslogtreecommitdiff
path: root/plugins/MirLua/src/m_genmenu.cpp
diff options
context:
space:
mode:
authorAlexander Lantsev <aunsane@gmail.com>2016-07-21 10:22:30 +0000
committerAlexander Lantsev <aunsane@gmail.com>2016-07-21 10:22:30 +0000
commit77dc4f6080513b9ea76e12b3e0e6b8ff9d93449c (patch)
tree2fd694b31a9f8b33c7c5163bebf2fee0b8a2c85a /plugins/MirLua/src/m_genmenu.cpp
parent82836a6c4e1fd6759dcccc21f7c337219584025f (diff)
MirLua: fix redundant (char*) cast
git-svn-id: http://svn.miranda-ng.org/main/trunk@17115 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/MirLua/src/m_genmenu.cpp')
-rw-r--r--plugins/MirLua/src/m_genmenu.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/MirLua/src/m_genmenu.cpp b/plugins/MirLua/src/m_genmenu.cpp
index 543fefe022..64540804a0 100644
--- a/plugins/MirLua/src/m_genmenu.cpp
+++ b/plugins/MirLua/src/m_genmenu.cpp
@@ -12,13 +12,13 @@ void MakeMenuItem(lua_State *L, CMenuItem &mi)
mi.flags |= CMIF_TCHAR;
lua_getfield(L, -1, "Uid");
- const char* uuid = (char*)lua_tostring(L, -1);
+ const char* uuid = lua_tostring(L, -1);
if (UuidFromStringA((RPC_CSTR)uuid, (UUID*)&mi.uid))
UNSET_UID(mi);
lua_pop(L, 1);
lua_getfield(L, -1, "Name");
- mi.name.t = mir_utf8decodeT((char*)luaL_checkstring(L, -1));
+ mi.name.t = mir_utf8decodeT(luaL_checkstring(L, -1));
lua_pop(L, 1);
lua_getfield(L, -1, "Position");
@@ -30,7 +30,7 @@ void MakeMenuItem(lua_State *L, CMenuItem &mi)
lua_pop(L, 1);
lua_getfield(L, -1, "Service");
- mi.pszService = (char*)lua_tostring(L, -1);
+ mi.pszService = lua_tostring(L, -1);
lua_pop(L, 1);
lua_getfield(L, -1, "Parent");