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.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/particle/rotationalparticle.cpp') diff --git a/src/particle/rotationalparticle.cpp b/src/particle/rotationalparticle.cpp index dc3206601..cee5c3c56 100644 --- a/src/particle/rotationalparticle.cpp +++ b/src/particle/rotationalparticle.cpp @@ -31,14 +31,15 @@ static const double PI = M_PI; static const float PI2 = 2 * M_PI; -RotationalParticle::RotationalParticle(Animation *const animation) : +RotationalParticle::RotationalParticle(Animation *restrict const animation) : ImageParticle(nullptr), mAnimation(new SimpleAnimation(animation)) { } RotationalParticle::RotationalParticle(const XmlNodePtr animationNode, - const std::string& dyePalettes) : + const std::string &restrict + dyePalettes) : ImageParticle(nullptr), mAnimation(new SimpleAnimation(animationNode, dyePalettes)) { @@ -50,7 +51,7 @@ RotationalParticle::~RotationalParticle() mImage = nullptr; } -bool RotationalParticle::update() +bool RotationalParticle::update() restrict2 { if (!mAnimation) return false; -- cgit v1.2.3-60-g2f50