Created
June 4, 2018 19:21
-
-
Save jeremysanders/76f6eca0e18e204d6a40a30a7ffb7209 to your computer and use it in GitHub Desktop.
patch to rename constLast to last
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/veusz/helpers/src/qtloops/polylineclip.cpp b/veusz/helpers/src/qtloops/polylineclip.cpp | |
index ae5b8edb..3cfe5fbe 100644 | |
--- a/veusz/helpers/src/qtloops/polylineclip.cpp | |
+++ b/veusz/helpers/src/qtloops/polylineclip.cpp | |
@@ -382,7 +382,7 @@ bool doPolygonsIntersect(const QPolygonF& a, const QPolygonF& b) | |
{ | |
for(auto const& poly : {a, b}) | |
{ | |
- QPointF prevpt(poly.constLast()); | |
+ QPointF prevpt(poly.last()); | |
for(auto const& currpt : poly) | |
{ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment