diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-12-27 18:37:26 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-12-27 18:37:26 +0300 |
commit | 12f2ce912aa1a7e158f06aa20396f213abdd2583 (patch) | |
tree | cd75248717e990fee8b7418df35eb5d27c195336 /src/particle/animationparticle.cpp | |
parent | 3605741892b995144111d4d885cf88063c3f4379 (diff) | |
download | plus-12f2ce912aa1a7e158f06aa20396f213abdd2583.tar.gz plus-12f2ce912aa1a7e158f06aa20396f213abdd2583.tar.bz2 plus-12f2ce912aa1a7e158f06aa20396f213abdd2583.tar.xz plus-12f2ce912aa1a7e158f06aa20396f213abdd2583.zip |
Add restrict keyword to particle.
Diffstat (limited to 'src/particle/animationparticle.cpp')
-rw-r--r-- | src/particle/animationparticle.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/particle/animationparticle.cpp b/src/particle/animationparticle.cpp index 919fa34e9..0d51976cb 100644 --- a/src/particle/animationparticle.cpp +++ b/src/particle/animationparticle.cpp @@ -28,14 +28,14 @@ #include "debug.h" -AnimationParticle::AnimationParticle(Animation *const animation) : +AnimationParticle::AnimationParticle(Animation *restrict const animation) : ImageParticle(nullptr), mAnimation(new SimpleAnimation(animation)) { } AnimationParticle::AnimationParticle(XmlNodePtrConst animationNode, - const std::string& dyePalettes) : + const std::string &restrict dyePalettes) : ImageParticle(nullptr), mAnimation(new SimpleAnimation(animationNode, dyePalettes)) { @@ -47,7 +47,7 @@ AnimationParticle::~AnimationParticle() mImage = nullptr; } -bool AnimationParticle::update() +bool AnimationParticle::update() restrict2 { if (mAnimation) { |