diff options
Diffstat (limited to 'src/display')
| -rw-r--r-- | src/display/curve.cpp | 6 | ||||
| -rw-r--r-- | src/display/curve.h | 2 |
2 files changed, 5 insertions, 3 deletions
diff --git a/src/display/curve.cpp b/src/display/curve.cpp index ca7666ee0..211eaaa53 100644 --- a/src/display/curve.cpp +++ b/src/display/curve.cpp @@ -19,6 +19,8 @@ #include <2geom/sbasis-to-bezier.h> #include <2geom/point.h> +#include <utility> + /** * Routines for SPCurve and for its Geom::PathVector */ @@ -33,9 +35,9 @@ SPCurve::SPCurve() _pathv() {} -SPCurve::SPCurve(Geom::PathVector const& pathv) +SPCurve::SPCurve(Geom::PathVector pathv) : _refcount(1), - _pathv(pathv) + _pathv(std::move(pathv)) {} //concat constructor diff --git a/src/display/curve.h b/src/display/curve.h index b79d41ebe..0e6a0ec86 100644 --- a/src/display/curve.h +++ b/src/display/curve.h @@ -25,7 +25,7 @@ class SPCurve { public: /* Constructors */ explicit SPCurve(); - explicit SPCurve(Geom::PathVector const& pathv); + explicit SPCurve(Geom::PathVector pathv); explicit SPCurve(std::list<SPCurve *> const& pathv); static SPCurve * new_from_rect(Geom::Rect const &rect, bool all_four_sides = false); |
