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/variabledata.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/variabledata.h')
-rw-r--r-- | src/variabledata.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/variabledata.h b/src/variabledata.h index 90eca967..be822050 100644 --- a/src/variabledata.h +++ b/src/variabledata.h @@ -52,7 +52,7 @@ public: int getData() const { return mData; } - int getType() const { return DATA_INT; } + int getType() const override { return DATA_INT; } private: int mData; @@ -65,7 +65,7 @@ public: const std::string &getData() const { return mData; } - int getType() const { return DATA_STRING; } + int getType() const override { return DATA_STRING; } private: std::string mData; @@ -78,7 +78,7 @@ public: double getData() const { return mData; } - int getType() const { return DATA_FLOAT; } + int getType() const override { return DATA_FLOAT; } private: double mData; @@ -91,7 +91,7 @@ public: bool getData() const { return mData; } - int getType() const { return DATA_BOOL; } + int getType() const override { return DATA_BOOL; } private: bool mData; @@ -104,7 +104,7 @@ public: Item *getData() const { return mData; } - int getType() const { return DATA_ITEM; } + int getType() const override { return DATA_ITEM; } private: Item *mData; @@ -117,7 +117,7 @@ public: ActorSprite *getData() const { return mData; } - int getType() const { return DATA_ACTOR; } + int getType() const override { return DATA_ACTOR; } private: ActorSprite *mData; |