diff options
| author | Kris De Gussem <kris.degussem@gmail.com> | 2014-01-12 10:53:01 +0000 |
|---|---|---|
| committer | Kris <Kris.De.Gussem@hotmail.com> | 2014-01-12 10:53:01 +0000 |
| commit | 6fda1bce5d95b0966e16fda00e84c780125a5884 (patch) | |
| tree | 494e01839f7188547ab8996087e20375e6940586 /src/snapped-point.h | |
| parent | pass class variables by reference for performance (diff) | |
| download | inkscape-6fda1bce5d95b0966e16fda00e84c780125a5884.tar.gz inkscape-6fda1bce5d95b0966e16fda00e84c780125a5884.zip | |
pass class variables by reference for performance
(bzr r12917)
Diffstat (limited to 'src/snapped-point.h')
| -rw-r--r-- | src/snapped-point.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/snapped-point.h b/src/snapped-point.h index 7ab572e82..bf440c450 100644 --- a/src/snapped-point.h +++ b/src/snapped-point.h @@ -66,7 +66,7 @@ public: bool getConstrainedSnap() const {return _constrained_snap;} bool getSnapped() const {return _distance < Geom::infinity();} Geom::Point getTransformation() const {return _transformation;} - void setTransformation(Geom::Point const t) {_transformation = t;} + void setTransformation(Geom::Point const &t) {_transformation = t;} void setTarget(SnapTargetType const target) {_target = target;} SnapTargetType getTarget() const {return _target;} void setTargetBBox(Geom::OptRect const target) {_target_bbox = target;} |
