Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1451)

Unified Diff: Source/core/svg/SVGAnimateMotionElement.cpp

Issue 141273002: Code problems detected by cppcheck (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Add a few more fixes Created 6 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: Source/core/svg/SVGAnimateMotionElement.cpp
diff --git a/Source/core/svg/SVGAnimateMotionElement.cpp b/Source/core/svg/SVGAnimateMotionElement.cpp
index 9c76b316404718f5dffa21750475903566d5ce6c..fd9012309ad207d2cc2c42c7ce071726c9b37e70 100644
--- a/Source/core/svg/SVGAnimateMotionElement.cpp
+++ b/Source/core/svg/SVGAnimateMotionElement.cpp
@@ -277,11 +277,10 @@ void SVGAnimateMotionElement::calculateAnimatedValue(float percentage, unsigned
ASSERT(!m_animationPath.isEmpty());
- bool ok = false;
float positionOnPath = m_animationPath.length() * percentage;
FloatPoint position;
float angle;
- ok = m_animationPath.pointAndNormalAtLength(positionOnPath, position, angle);
+ bool ok = m_animationPath.pointAndNormalAtLength(positionOnPath, position, angle);
if (!ok)
return;

Powered by Google App Engine
This is Rietveld 408576698