summaryrefslogtreecommitdiffstats
path: root/src/helper/geom.cpp
diff options
context:
space:
mode:
authorKris De Gussem <kris.degussem@gmail.com>2012-04-09 19:19:30 +0000
committerKris <Kris.De.Gussem@hotmail.com>2012-04-09 19:19:30 +0000
commit352a8b65716e482c44920cc94d5f48ca5bc49068 (patch)
treeffe4dc958784862f78673d19af0d10c5aa2fa8c0 /src/helper/geom.cpp
parentDocumentation / dropping some pointer conversions in context menu (diff)
downloadinkscape-352a8b65716e482c44920cc94d5f48ca5bc49068.tar.gz
inkscape-352a8b65716e482c44920cc94d5f48ca5bc49068.zip
cppcheck stuff
(bzr r11201)
Diffstat (limited to 'src/helper/geom.cpp')
-rw-r--r--src/helper/geom.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/helper/geom.cpp b/src/helper/geom.cpp
index 33947c14d..585d2b8a5 100644
--- a/src/helper/geom.cpp
+++ b/src/helper/geom.cpp
@@ -75,11 +75,11 @@ cubic_bbox (Geom::Coord x000, Geom::Coord y000, Geom::Coord x001, Geom::Coord y0
if (fabs (a) < Geom::EPSILON) {
/* s = -c / b */
if (fabs (b) > Geom::EPSILON) {
- double s, t, xttt;
+ double s;
s = -c / b;
if ((s > 0.0) && (s < 1.0)) {
- t = 1.0 - s;
- xttt = s * s * s * x000 + 3 * s * s * t * x001 + 3 * s * t * t * x011 + t * t * t * x111;
+ double t = 1.0 - s;
+ double xttt = s * s * s * x000 + 3 * s * s * t * x001 + 3 * s * t * t * x011 + t * t * t * x111;
bbox[0].expandTo(xttt);
}
}
@@ -114,11 +114,11 @@ cubic_bbox (Geom::Coord x000, Geom::Coord y000, Geom::Coord x001, Geom::Coord y0
if (fabs (a) < Geom::EPSILON) {
/* s = -c / b */
if (fabs (b) > Geom::EPSILON) {
- double s, t, yttt;
+ double s;
s = -c / b;
if ((s > 0.0) && (s < 1.0)) {
- t = 1.0 - s;
- yttt = s * s * s * y000 + 3 * s * s * t * y001 + 3 * s * t * t * y011 + t * t * t * y111;
+ double t = 1.0 - s;
+ double yttt = s * s * s * y000 + 3 * s * s * t * y001 + 3 * s * t * t * y011 + t * t * t * y111;
bbox[1].expandTo(yttt);
}
}