mirror of
https://github.com/OpenMW/openmw.git
synced 2025-02-22 23:39:42 +00:00
Mark some methods as overrides to avoid warnings
This commit is contained in:
parent
ce597ff908
commit
9ec61c14d2
2 changed files with 8 additions and 8 deletions
|
@ -47,7 +47,7 @@ namespace MWGui
|
|||
void setCrosshairVisible(bool visible);
|
||||
void setCrosshairOwned(bool owned);
|
||||
|
||||
void onFrame(float dt);
|
||||
void onFrame(float dt) override;
|
||||
|
||||
void setCellName(const std::string& cellName);
|
||||
|
||||
|
@ -58,7 +58,7 @@ namespace MWGui
|
|||
void setEnemy(const MWWorld::Ptr& enemy);
|
||||
void resetEnemy();
|
||||
|
||||
void clear();
|
||||
void clear() override;
|
||||
|
||||
private:
|
||||
MyGUI::ProgressBar *mHealth, *mMagicka, *mStamina, *mEnemyHealth, *mDrowning;
|
||||
|
@ -112,8 +112,8 @@ namespace MWGui
|
|||
void onMapClicked(MyGUI::Widget* _sender);
|
||||
|
||||
// LocalMapBase
|
||||
virtual void customMarkerCreated(MyGUI::Widget* marker);
|
||||
virtual void doorMarkerCreated(MyGUI::Widget* marker);
|
||||
virtual void customMarkerCreated(MyGUI::Widget* marker) override;
|
||||
virtual void doorMarkerCreated(MyGUI::Widget* marker) override;
|
||||
|
||||
void updateEnemyHealthBar();
|
||||
|
||||
|
|
|
@ -18,7 +18,7 @@ namespace MWGui
|
|||
StatsWindow(DragAndDrop* drag);
|
||||
|
||||
/// automatically updates all the data in the stats window, but only if it has changed.
|
||||
void onFrame(float dt);
|
||||
void onFrame(float dt) override;
|
||||
|
||||
void setBar(const std::string& name, const std::string& tname, int val, int max);
|
||||
void setPlayerName(const std::string& playerName);
|
||||
|
@ -35,7 +35,7 @@ namespace MWGui
|
|||
void setBounty (int bounty) { if (bounty != mBounty) mChanged = true; this->mBounty = bounty; }
|
||||
void updateSkillArea();
|
||||
|
||||
virtual void onOpen() { onWindowResize(mMainWidget->castType<MyGUI::Window>()); }
|
||||
virtual void onOpen() override { onWindowResize(mMainWidget->castType<MyGUI::Window>()); }
|
||||
|
||||
private:
|
||||
void addSkills(const SkillList &skills, const std::string &titleId, const std::string &titleDefault, MyGUI::IntCoord &coord1, MyGUI::IntCoord &coord2);
|
||||
|
@ -70,8 +70,8 @@ namespace MWGui
|
|||
const int mMinFullWidth;
|
||||
|
||||
protected:
|
||||
virtual void onPinToggled();
|
||||
virtual void onTitleDoubleClicked();
|
||||
virtual void onPinToggled() override;
|
||||
virtual void onTitleDoubleClicked() override;
|
||||
};
|
||||
}
|
||||
#endif
|
||||
|
|
Loading…
Reference in a new issue