fixing some unused variables and hiding previous/class members warnings

This commit is contained in:
slavidodo
2020-05-07 19:05:16 +02:00
parent e3caaacc55
commit d95bde1c77
10 changed files with 75 additions and 75 deletions

View File

@@ -306,7 +306,7 @@ public:
bool isTable(int index = -1);
bool isFunction(int index = -1);
bool isCFunction(int index = -1);
bool isLuaFunction(int index = -1) { return (isFunction() && !isCFunction()); }
bool isLuaFunction(int index = -1) { return (isFunction(index) && !isCFunction(index)); }
bool isUserdata(int index = -1);
bool toBoolean(int index = -1);

View File

@@ -82,7 +82,7 @@ public:
LuaObjectPtr asLuaObject() { return static_self_cast<LuaObject>(); }
void operator=(const LuaObject& other) { }
void operator=(const LuaObject&) { }
private:
int m_fieldsTableRef;

View File

@@ -36,9 +36,9 @@ public:
void update();
void updateLater();
virtual void applyStyle(const OTMLNodePtr& styleNode) { }
virtual void addWidget(const UIWidgetPtr& widget) { }
virtual void removeWidget(const UIWidgetPtr& widget) { }
virtual void applyStyle(const OTMLNodePtr& /*styleNode*/) { }
virtual void addWidget(const UIWidgetPtr& /*widget*/) { }
virtual void removeWidget(const UIWidgetPtr& /*widget*/) { }
void disableUpdates() { m_updateDisabled++; }
void enableUpdates() { m_updateDisabled = std::max<int>(m_updateDisabled-1,0); }