summaryrefslogtreecommitdiff
path: root/src/particle/rotationalparticle.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-12-27 18:37:26 +0300
committerAndrei Karas <akaras@inbox.ru>2015-12-27 18:37:26 +0300
commit12f2ce912aa1a7e158f06aa20396f213abdd2583 (patch)
treecd75248717e990fee8b7418df35eb5d27c195336 /src/particle/rotationalparticle.h
parent3605741892b995144111d4d885cf88063c3f4379 (diff)
downloadmv-12f2ce912aa1a7e158f06aa20396f213abdd2583.tar.gz
mv-12f2ce912aa1a7e158f06aa20396f213abdd2583.tar.bz2
mv-12f2ce912aa1a7e158f06aa20396f213abdd2583.tar.xz
mv-12f2ce912aa1a7e158f06aa20396f213abdd2583.zip
Add restrict keyword to particle.
Diffstat (limited to 'src/particle/rotationalparticle.h')
-rw-r--r--src/particle/rotationalparticle.h9
1 files changed, 5 insertions, 4 deletions
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