diff options
author | Thorbjørn Lindeijer <bjorn@lindeijer.nl> | 2024-01-26 16:07:54 +0100 |
---|---|---|
committer | Thorbjørn Lindeijer <bjorn@lindeijer.nl> | 2024-01-26 16:07:54 +0100 |
commit | 5afe88df2538274859a162ffd63ed52118e80c19 (patch) | |
tree | b610dfd58dc748fd63f49565b2a43eea2316714f /src/text.h | |
parent | 73ba2a95f5bd4a0dd09af52d5864800be2b0a4c6 (diff) | |
download | Mana-5afe88df2538274859a162ffd63ed52118e80c19.tar.gz Mana-5afe88df2538274859a162ffd63ed52118e80c19.tar.bz2 Mana-5afe88df2538274859a162ffd63ed52118e80c19.tar.xz Mana-5afe88df2538274859a162ffd63ed52118e80c19.zip |
Apply C++11 fixits
modernize-use-auto
modernize-use-nullptr
modernize-use-override
modernize-use-using
Diffstat (limited to 'src/text.h')
-rw-r--r-- | src/text.h | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -40,7 +40,7 @@ class Text Text(const std::string &text, int x, int y, gcn::Graphics::Alignment alignment, const gcn::Color *color, bool isSpeech = false, - gcn::Font *font = 0); + gcn::Font *font = nullptr); /** * Destructor. The text is removed from the screen. @@ -85,12 +85,12 @@ class FlashText : public Text FlashText(const std::string &text, int x, int y, gcn::Graphics::Alignment alignment, const gcn::Color* color, - gcn::Font *font = 0); + gcn::Font *font = nullptr); /** * Remove the text from the screen */ - virtual ~FlashText() {} + ~FlashText() override {} /** * Flash the text for so many refreshes. @@ -100,7 +100,7 @@ class FlashText : public Text /** * Draws the text. */ - virtual void draw(gcn::Graphics *graphics, int xOff, int yOff); + void draw(gcn::Graphics *graphics, int xOff, int yOff) override; private: int mTime; /**< Time left for flashing */ |