summaryrefslogtreecommitdiffstats
path: root/src/color.cpp
diff options
context:
space:
mode:
authorKris De Gussem <kris.degussem@gmail.com>2013-04-21 09:56:09 +0000
committerKris <Kris.De.Gussem@hotmail.com>2013-04-21 09:56:09 +0000
commit8d793593fff1737c91b76f820e1b4aa021897cee (patch)
tree7e23a82675cbb16050942625337c35836a17f59a /src/color.cpp
parentFix symbols not being installed bug reported by suv (diff)
downloadinkscape-8d793593fff1737c91b76f820e1b4aa021897cee.tar.gz
inkscape-8d793593fff1737c91b76f820e1b4aa021897cee.zip
cppcheck
(bzr r12293)
Diffstat (limited to 'src/color.cpp')
-rw-r--r--src/color.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/color.cpp b/src/color.cpp
index 0a07d3f21..5eb0d91ef 100644
--- a/src/color.cpp
+++ b/src/color.cpp
@@ -99,9 +99,7 @@ bool SPColor::operator == (SPColor const& other) const
*/
bool SPColor::isClose( SPColor const& other, float epsilon ) const
{
- bool match = false;
-
- match = (fabs((v.c[0]) - (other.v.c[0])) < epsilon)
+ bool match = (fabs((v.c[0]) - (other.v.c[0])) < epsilon)
&& (fabs((v.c[1]) - (other.v.c[1])) < epsilon)
&& (fabs((v.c[2]) - (other.v.c[2])) < epsilon);