summaryrefslogtreecommitdiff
path: root/src/text.h
diff options
context:
space:
mode:
authorThorbjørn Lindeijer <bjorn@lindeijer.nl>2024-01-26 16:07:54 +0100
committerThorbjørn Lindeijer <bjorn@lindeijer.nl>2024-01-26 16:07:54 +0100
commit5afe88df2538274859a162ffd63ed52118e80c19 (patch)
treeb610dfd58dc748fd63f49565b2a43eea2316714f /src/text.h
parent73ba2a95f5bd4a0dd09af52d5864800be2b0a4c6 (diff)
downloadMana-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.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/text.h b/src/text.h
index 9b215259..3e6c7913 100644
--- a/src/text.h
+++ b/src/text.h
@@ -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 */