summaryrefslogtreecommitdiff
path: root/src/particle/textparticle.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-03-16 15:02:46 +0300
committerAndrei Karas <akaras@inbox.ru>2016-03-16 15:02:46 +0300
commit8ae877cf5d4abd2c97d299c5067c6d2f77dd2811 (patch)
tree7d557177a681aa8ddc4331d22bf0f1d126cb4051 /src/particle/textparticle.h
parent8c2820ce9a67bf6e0691e4d72804a2dd1a2a3eac (diff)
downloadmanaplus-8ae877cf5d4abd2c97d299c5067c6d2f77dd2811.tar.gz
manaplus-8ae877cf5d4abd2c97d299c5067c6d2f77dd2811.tar.bz2
manaplus-8ae877cf5d4abd2c97d299c5067c6d2f77dd2811.tar.xz
manaplus-8ae877cf5d4abd2c97d299c5067c6d2f77dd2811.zip
Add nonnull attributes to particle classes.
Diffstat (limited to 'src/particle/textparticle.h')
-rw-r--r--src/particle/textparticle.h14
1 files changed, 9 insertions, 5 deletions
diff --git a/src/particle/textparticle.h b/src/particle/textparticle.h
index 7064a5358..e13b2e13c 100644
--- a/src/particle/textparticle.h
+++ b/src/particle/textparticle.h
@@ -34,7 +34,7 @@ class TextParticle final : public Particle
TextParticle(const std::string &text,
const Color *restrict const color,
Font *restrict const font,
- const bool outline = false);
+ const bool outline = false) A_NONNULL(3, 4);
A_DELETE_COPY(TextParticle)
@@ -55,11 +55,15 @@ class TextParticle final : public Particle
{ return CAST_S32(mPos.y + mPos.z); }
private:
- std::string mText; /**< Text of the particle. */
- Font *restrict mTextFont; /**< Font used for drawing the text. */
- const Color *restrict mColor; /**< Color used for drawing the text. */
+ /**< Text of the particle. */
+ std::string mText;
+ /**< Font used for drawing the text. */
+ Font *restrict mTextFont A_NONNULLPOINTER;
+ /**< Color used for drawing the text. */
+ const Color *restrict mColor A_NONNULLPOINTER;
int mTextWidth;
- bool mOutline; /**< Make the text better readable */
+ /**< Make the text better readable */
+ bool mOutline;
};
#endif // PARTICLE_TEXTPARTICLE_H