summaryrefslogtreecommitdiff
path: root/plugins/MirLua/src/m_genmenu.cpp
diff options
context:
space:
mode:
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");