mirror of
https://github.com/edubart/otclient.git
synced 2025-10-20 06:23:26 +02:00
fixing some unused variables and hiding previous/class members warnings
This commit is contained in:
@@ -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);
|
||||
|
@@ -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;
|
||||
|
@@ -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); }
|
||||
|
||||
|
Reference in New Issue
Block a user