diff options
author | Andrei Karas <akaras@inbox.ru> | 2016-03-16 15:02:46 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2016-03-16 15:02:46 +0300 |
commit | 8ae877cf5d4abd2c97d299c5067c6d2f77dd2811 (patch) | |
tree | 7d557177a681aa8ddc4331d22bf0f1d126cb4051 /src/particle/particle.h | |
parent | 8c2820ce9a67bf6e0691e4d72804a2dd1a2a3eac (diff) | |
download | mv-8ae877cf5d4abd2c97d299c5067c6d2f77dd2811.tar.gz mv-8ae877cf5d4abd2c97d299c5067c6d2f77dd2811.tar.bz2 mv-8ae877cf5d4abd2c97d299c5067c6d2f77dd2811.tar.xz mv-8ae877cf5d4abd2c97d299c5067c6d2f77dd2811.zip |
Add nonnull attributes to particle classes.
Diffstat (limited to 'src/particle/particle.h')
-rw-r--r-- | src/particle/particle.h | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/particle/particle.h b/src/particle/particle.h index eff89553e..323e1c171 100644 --- a/src/particle/particle.h +++ b/src/particle/particle.h @@ -123,7 +123,8 @@ class Particle notfinal : public Actor const int x, const int y, const Color *restrict const color, Font *restrict const font, - const bool outline = false) restrict2; + const bool outline = false) + restrict2 A_NONNULL(5, 6); /** * Creates a standalone text particle. @@ -133,12 +134,12 @@ class Particle notfinal : public Actor const Color *restrict const color, Font *restrict const font, const bool outline = false) - restrict2; + restrict2 A_NONNULL(5, 6); /** * Adds an emitter to the particle. */ - void addEmitter(ParticleEmitter *const emitter) restrict2 + void addEmitter(ParticleEmitter *const emitter) restrict2 A_NONNULL(2) { mChildEmitters.push_back(emitter); } /** @@ -222,7 +223,7 @@ class Particle notfinal : public Actor */ void setDestination(Particle *restrict const target, const float accel, - const float moment) restrict2 noexcept + const float moment) restrict2 noexcept A_NONNULL(2) { mTarget = target; mAcceleration = accel; mMomentum = moment; } /** |