summaryrefslogtreecommitdiff
path: root/src/particle/particletimer.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/particletimer.h
parent8c2820ce9a67bf6e0691e4d72804a2dd1a2a3eac (diff)
downloadmanaverse-8ae877cf5d4abd2c97d299c5067c6d2f77dd2811.tar.gz
manaverse-8ae877cf5d4abd2c97d299c5067c6d2f77dd2811.tar.bz2
manaverse-8ae877cf5d4abd2c97d299c5067c6d2f77dd2811.tar.xz
manaverse-8ae877cf5d4abd2c97d299c5067c6d2f77dd2811.zip
Add nonnull attributes to particle classes.
Diffstat (limited to 'src/particle/particletimer.h')
-rw-r--r--src/particle/particletimer.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/particle/particletimer.h b/src/particle/particletimer.h
index 8cca683b5..1550935d8 100644
--- a/src/particle/particletimer.h
+++ b/src/particle/particletimer.h
@@ -28,14 +28,14 @@ class Particle;
struct ParticleTimer final
{
ParticleTimer(Particle *const particle0,
- const int endTime0) :
+ const int endTime0) A_NONNULL(2) :
particle(particle0),
endTime(endTime0)
{
}
- Particle *particle;
- int endTime;
+ Particle *const particle;
+ const int endTime;
};
#endif // PARTICLE_PARTICLETIMER_H