poppler/Page.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
New commits: commit 4b56adac660e9b0620f5345edb9eef5546de51f6 Author: Albert Astals Cid <[email protected]> Date: Sat Mar 28 23:59:34 2020 +0100 Make some PDFRectangle methods const diff --git a/poppler/Page.h b/poppler/Page.h index 3e4b341a..e5d59449 100644 --- a/poppler/Page.h +++ b/poppler/Page.h @@ -20,7 +20,7 @@ // Copyright (C) 2007 Julien Rebetez <[email protected]> // Copyright (C) 2008 Iñigo Martínez <[email protected]> // Copyright (C) 2012 Fabio D'Urso <[email protected]> -// Copyright (C) 2012, 2017, 2018 Albert Astals Cid <[email protected]> +// Copyright (C) 2012, 2017, 2018, 2020 Albert Astals Cid <[email protected]> // Copyright (C) 2013 Thomas Freitag <[email protected]> // Copyright (C) 2013, 2017 Adrian Johnson <[email protected]> // Copyright (C) 2018 Adam Reichold <[email protected]> @@ -61,8 +61,8 @@ public: PDFRectangle() { x1 = y1 = x2 = y2 = 0; } PDFRectangle(double x1A, double y1A, double x2A, double y2A) { x1 = x1A; y1 = y1A; x2 = x2A; y2 = y2A; } - bool isValid() { return x1 != 0 || y1 != 0 || x2 != 0 || y2 != 0; } - bool contains(double x, double y) { return x1 <= x && x <= x2 && y1 <= y && y <= y2; } + bool isValid() const { return x1 != 0 || y1 != 0 || x2 != 0 || y2 != 0; } + bool contains(double x, double y) const { return x1 <= x && x <= x2 && y1 <= y && y <= y2; } void clipTo(PDFRectangle *rect); bool operator==(const PDFRectangle &rect) const { return x1 == rect.x1 && y1 == rect.y1 && x2 == rect.x2 && y2 == rect.y2; } _______________________________________________ poppler mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/poppler
