summaryrefslogtreecommitdiffstats
path: root/src/2geom/curve.cpp
diff options
context:
space:
mode:
authorThomas Holder <thomas@thomas-holder.de>2018-09-30 18:30:50 +0000
committerThomas Holder <thomas@thomas-holder.de>2018-09-30 18:30:50 +0000
commit50cc9b79df730bf5a6f4c5010168fff9342ccea7 (patch)
tree711e790493ba7e0fde9ad9ae4ad2d01a0f8eb746 /src/2geom/curve.cpp
parentrefactor: simplify loop (diff)
downloadinkscape-50cc9b79df730bf5a6f4c5010168fff9342ccea7.tar.gz
inkscape-50cc9b79df730bf5a6f4c5010168fff9342ccea7.zip
c++11 refactor: std::auto_ptr -> std::unique_ptr
Diffstat (limited to 'src/2geom/curve.cpp')
-rw-r--r--src/2geom/curve.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/2geom/curve.cpp b/src/2geom/curve.cpp
index 387a9180b..8ad0178cf 100644
--- a/src/2geom/curve.cpp
+++ b/src/2geom/curve.cpp
@@ -108,7 +108,7 @@ std::vector<CurveIntersection> Curve::intersectSelf(Coord eps) const
// Monotonic segments cannot have self-intersections.
// Thus, we can split the curve at roots and intersect the portions.
std::vector<Coord> splits;
- std::auto_ptr<Curve> deriv(derivative());
+ std::unique_ptr<Curve> deriv(derivative());
splits = deriv->roots(0, X);
if (splits.empty()) {
return result;