From 2efaee4cee14b42915dc02aebf79a44bc8aecac3 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Wed, 21 Sep 2011 18:31:39 +1000 Subject: initialize value as const (clang complains about this) (bzr r10643) --- src/snapped-curve.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/snapped-curve.cpp b/src/snapped-curve.cpp index 25b03428a..9cb547609 100644 --- a/src/snapped-curve.cpp +++ b/src/snapped-curve.cpp @@ -123,7 +123,7 @@ Inkscape::SnappedPoint Inkscape::SnappedCurve::intersect(SnappedLine const &line // (for this we will create a 2e6 pixels long linesegment, with t running from -1e6 to 1e6; this should be long // enough for any practical purpose) Geom::LineSegment line_segm = line.getLine().transformed(dt2doc).segment(-1e6, 1e6); // - Geom::Curve *line_as_curve = dynamic_cast(&line_segm); + const Geom::Curve *line_as_curve = dynamic_cast(&line_segm); Geom::Crossings cs = crossings(*(this->_curve), *line_as_curve); if (cs.size() > 0) { -- cgit v1.2.3