diff options
| author | Kris De Gussem <kris.degussem@gmail.com> | 2015-12-07 20:19:14 +0000 |
|---|---|---|
| committer | Kris De Gussem <Kris.De.Gussem@hotmail.com> | 2015-12-07 20:19:14 +0000 |
| commit | c54db8d887cae2bd6dd326a10f976c726f905e7d (patch) | |
| tree | 04d7f84f4cf21386f7f7e1c19f8f9f54c4d3dd41 /src/snapper.h | |
| parent | static code analysis (diff) | |
| download | inkscape-c54db8d887cae2bd6dd326a10f976c726f905e7d.tar.gz inkscape-c54db8d887cae2bd6dd326a10f976c726f905e7d.zip | |
static code analysis
(bzr r14509)
Diffstat (limited to 'src/snapper.h')
| -rw-r--r-- | src/snapper.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/snapper.h b/src/snapper.h index 24f9b9442..6c7995045 100644 --- a/src/snapper.h +++ b/src/snapper.h @@ -77,7 +77,7 @@ public: // Constructs a linear constraint SnapConstraint(Geom::Point const &p, Geom::Point const &d) : _point(p), _direction(d), _radius(0), _type(LINE) {} // Orthogonal version - SnapConstraint(Geom::Point const &p, Geom::Dim2 const &d) : _point(p), _radius(0), _type(LINE) {_direction = Geom::Point(); _direction[d] = 1.;} + SnapConstraint(Geom::Point const &p, Geom::Dim2 const &d) : _point(p), _direction(), _radius(0), _type(LINE) {_direction[d] = 1.;} 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) {} |
