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/resources/spritedef.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/resources/spritedef.h')
-rw-r--r-- | src/resources/spritedef.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/resources/spritedef.h b/src/resources/spritedef.h index 5ece1308..b044e7b6 100644 --- a/src/resources/spritedef.h +++ b/src/resources/spritedef.h @@ -53,7 +53,7 @@ struct SpriteDisplay std::list<std::string> particles; }; -typedef std::list<SpriteReference>::const_iterator SpriteRefs; +using SpriteRefs = std::list<SpriteReference>::const_iterator; /* * Remember those are the main action. @@ -115,7 +115,7 @@ class SpriteDef : public Resource private: SpriteDef() {} - ~SpriteDef(); + ~SpriteDef() override; /** * Loads a sprite element. @@ -156,10 +156,10 @@ class SpriteDef : public Resource */ void substituteAction(std::string complete, std::string with); - typedef std::map<std::string, ImageSet*> ImageSets; - typedef ImageSets::iterator ImageSetIterator; + using ImageSets = std::map<std::string, ImageSet *>; + using ImageSetIterator = ImageSets::iterator; - typedef std::map<std::string, Action*> Actions; + using Actions = std::map<std::string, Action *>; ImageSets mImageSets; Actions mActions; |