diff options
| author | Kris De Gussem <kris.degussem@gmail.com> | 2012-06-12 19:42:58 +0000 |
|---|---|---|
| committer | Kris <Kris.De.Gussem@hotmail.com> | 2012-06-12 19:42:58 +0000 |
| commit | ed4d7f8b668ebf280ef2a29badc6999c9c145ce0 (patch) | |
| tree | bb5a75ff7f18249e0c75504053f96ea7e4f720b6 /src/snapper.h | |
| parent | enable GSEAL for Windows builds (diff) | |
| download | inkscape-ed4d7f8b668ebf280ef2a29badc6999c9c145ce0.tar.gz inkscape-ed4d7f8b668ebf280ef2a29badc6999c9c145ce0.zip | |
cppcheck
(bzr r11492)
Diffstat (limited to 'src/snapper.h')
| -rw-r--r-- | src/snapper.h | 8 |
1 files changed, 4 insertions, 4 deletions
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;} |
