summaryrefslogtreecommitdiff
path: root/src/particle/animationparticle.cpp
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/animationparticle.cpp
parent3605741892b995144111d4d885cf88063c3f4379 (diff)
downloadmanaverse-12f2ce912aa1a7e158f06aa20396f213abdd2583.tar.gz
manaverse-12f2ce912aa1a7e158f06aa20396f213abdd2583.tar.bz2
manaverse-12f2ce912aa1a7e158f06aa20396f213abdd2583.tar.xz
manaverse-12f2ce912aa1a7e158f06aa20396f213abdd2583.zip
Add restrict keyword to particle.
Diffstat (limited to 'src/particle/animationparticle.cpp')
-rw-r--r--src/particle/animationparticle.cpp6
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)
{