diff options
author | Thorbjørn Lindeijer <bjorn@lindeijer.nl> | 2024-03-02 12:55:32 +0000 |
---|---|---|
committer | Thorbjørn Lindeijer <bjorn@lindeijer.nl> | 2024-03-02 12:55:32 +0000 |
commit | 5efaa5125fe92a5438b3cc2949f4d720bced5a7a (patch) | |
tree | 87f4da1382fb6179610182ca3e502e5365e66276 /src/resources/animation.h | |
parent | 2e60491ceb0548b0bea93207c13b974d6a6cf5cc (diff) | |
download | mana-5efaa5125fe92a5438b3cc2949f4d720bced5a7a.tar.gz mana-5efaa5125fe92a5438b3cc2949f4d720bced5a7a.tar.bz2 mana-5efaa5125fe92a5438b3cc2949f4d720bced5a7a.tar.xz mana-5efaa5125fe92a5438b3cc2949f4d720bced5a7a.zip |
General code cleanups
* Don't needlessly store or return raw pointers in BeingInfo
* Less copying, more moving
* Less else after return
* Make AddDEF a template instead of a macro
* Removed some unused includes
* Use range-based for loops
Diffstat (limited to 'src/resources/animation.h')
-rw-r--r-- | src/resources/animation.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/resources/animation.h b/src/resources/animation.h index 6363e49f..59601dc4 100644 --- a/src/resources/animation.h +++ b/src/resources/animation.h @@ -46,7 +46,7 @@ struct Frame class Animation { public: - Animation(); + Animation() = default; /** * Appends a new animation at the end of the sequence. @@ -81,7 +81,7 @@ class Animation protected: std::vector<Frame> mFrames; - int mDuration; + int mDuration = 0; }; #endif |