summaryrefslogtreecommitdiff
path: root/plugins/MirLua/src
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2020-10-16 19:41:47 +0300
committerGeorge Hazan <ghazan@miranda.im>2020-10-16 19:41:47 +0300
commit1aea5e768a5616d30a9568a57cc190cd96d2529c (patch)
treed604e878a84139d9a840920aef9e26cd7afe76be /plugins/MirLua/src
parent4bb9749b21edbe9d97ea16a440501f51d5be036c (diff)
warning fix
Diffstat (limited to 'plugins/MirLua/src')
-rw-r--r--plugins/MirLua/src/Modules/m_json.cpp2
-rw-r--r--plugins/MirLua/src/metatable.h2
2 files changed, 3 insertions, 1 deletions
diff --git a/plugins/MirLua/src/Modules/m_json.cpp b/plugins/MirLua/src/Modules/m_json.cpp
index db45f77065..35a6eb1ba9 100644
--- a/plugins/MirLua/src/Modules/m_json.cpp
+++ b/plugins/MirLua/src/Modules/m_json.cpp
@@ -168,7 +168,7 @@ static int json__pairsIterator(lua_State *L)
static int json__pairs(lua_State *L)
{
- JSONNode *node = *(JSONNode**)luaL_checkudata(L, 1, MT_JSON);
+ luaL_checkudata(L, 1, MT_JSON);
lua_pushinteger(L, 0);
lua_pushcclosure(L, json__pairsIterator, 1);
diff --git a/plugins/MirLua/src/metatable.h b/plugins/MirLua/src/metatable.h
index aa736428ca..82d4e07c21 100644
--- a/plugins/MirLua/src/metatable.h
+++ b/plugins/MirLua/src/metatable.h
@@ -29,6 +29,8 @@ public:
CMTField(const char *name, int type) :
name(mir_strdup(name)), type(type) {}
+ virtual ~CMTField() {}
+
const char* GetName() const { return name; }
int GetType() const { return type; }