From 2033ce76a8fba2148bc034d16e1d226bc757c47f Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Fri, 18 Oct 2013 18:42:51 +0300 Subject: remove virtual methos call from particle constructor. --- src/particle/rotationalparticle.cpp | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'src/particle/rotationalparticle.cpp') diff --git a/src/particle/rotationalparticle.cpp b/src/particle/rotationalparticle.cpp index c16baf391..4cf726c32 100644 --- a/src/particle/rotationalparticle.cpp +++ b/src/particle/rotationalparticle.cpp @@ -31,17 +31,15 @@ static const double PI = M_PI; static const float PI2 = 2 * M_PI; -RotationalParticle::RotationalParticle(Map *const map, - Animation *const animation) : - ImageParticle(map, nullptr), +RotationalParticle::RotationalParticle(Animation *const animation) : + ImageParticle(nullptr), mAnimation(new SimpleAnimation(animation)) { } -RotationalParticle::RotationalParticle(Map *const map, - const XmlNodePtr animationNode, +RotationalParticle::RotationalParticle(const XmlNodePtr animationNode, const std::string& dyePalettes): - ImageParticle(map, nullptr), + ImageParticle(nullptr), mAnimation(new SimpleAnimation(animationNode, dyePalettes)) { } -- cgit v1.2.3-70-g09d2