From 12f2ce912aa1a7e158f06aa20396f213abdd2583 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 27 Dec 2015 18:37:26 +0300 Subject: Add restrict keyword to particle. --- src/particle/rotationalparticle.h | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'src/particle/rotationalparticle.h') diff --git a/src/particle/rotationalparticle.h b/src/particle/rotationalparticle.h index 9cce18899..a3026e2b8 100644 --- a/src/particle/rotationalparticle.h +++ b/src/particle/rotationalparticle.h @@ -33,20 +33,21 @@ class SimpleAnimation; class RotationalParticle final : public ImageParticle { public: - explicit RotationalParticle(Animation *const animation); + explicit RotationalParticle(Animation *restrict const animation); explicit RotationalParticle(const XmlNodePtr animationNode, - const std::string& dyePalettes + const std::string &restrict dyePalettes = std::string()); A_DELETE_COPY(RotationalParticle) ~RotationalParticle(); - bool update() override final; + bool update() restrict2 override final; private: - SimpleAnimation *mAnimation; /**< Used animation for this particle */ + /**< Used animation for this particle */ + SimpleAnimation *restrict mAnimation; }; #endif // PARTICLE_ROTATIONALPARTICLE_H -- cgit v1.2.3-70-g09d2