From ed4d7f8b668ebf280ef2a29badc6999c9c145ce0 Mon Sep 17 00:00:00 2001 From: Kris De Gussem Date: Tue, 12 Jun 2012 21:42:58 +0200 Subject: cppcheck (bzr r11492) --- src/snapper.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/snapper.h') diff --git a/src/snapper.h b/src/snapper.h index 78d32c12c..d9f3ab797 100644 --- a/src/snapper.h +++ b/src/snapper.h @@ -75,14 +75,14 @@ public: public: // Constructs a direction constraint, e.g. horizontal or vertical but without a specified point - SnapConstraint(Geom::Point const &d) : _direction(d), _type(DIRECTION) {} + SnapConstraint(Geom::Point const &d) : _point(), _direction(d), _radius(0), _type(DIRECTION) {} // Constructs a linear constraint - SnapConstraint(Geom::Point const &p, Geom::Point const &d) : _point(p), _direction(d), _type(LINE) {} - SnapConstraint(Geom::Line const &l) : _point(l.origin()), _direction(l.versor()), _type(LINE) {} + SnapConstraint(Geom::Point const &p, Geom::Point const &d) : _point(p), _direction(d), _radius(0), _type(LINE) {} + SnapConstraint(Geom::Line const &l) : _point(l.origin()), _direction(l.versor()), _radius(0), _type(LINE) {} // Constructs a circular constraint SnapConstraint(Geom::Point const &p, Geom::Point const &d, Geom::Coord const &r) : _point(p), _direction(d), _radius(r), _type(CIRCLE) {} // Undefined, or empty constraint - SnapConstraint() : _type(UNDEFINED) {} + SnapConstraint() : _point(), _direction(), _radius(0), _type(UNDEFINED) {} bool hasPoint() const {return _type != DIRECTION && _type != UNDEFINED;} -- cgit v1.2.3