summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlbert Astals Cid <albert.astals.cid@kdab.com>2020-10-29 15:53:58 +0100
committerAlbert Astals Cid <aacid@kde.org>2020-10-29 15:53:58 +0100
commit6d7ed61dfa6a650078446d7a41ab95f2458cfd70 (patch)
treeb51c98e3a74416b7a525a8e17a18588ada8fe6d1
parentb4c83738d82ba0d34b050dc4e4cfec53fe02fcdd (diff)
const++
-rw-r--r--poppler/Annot.cc3
-rw-r--r--poppler/Annot.h3
2 files changed, 4 insertions, 2 deletions
diff --git a/poppler/Annot.cc b/poppler/Annot.cc
index b6e4d32b..d472a6e6 100644
--- a/poppler/Annot.cc
+++ b/poppler/Annot.cc
@@ -44,6 +44,7 @@
// Copyright (C) 2018-2020 Oliver Sander <oliver.sander@tu-dresden.de>
// Copyright (C) 2019 Umang Malik <umang99m@gmail.com>
// Copyright (C) 2019 João Netto <joaonetto901@gmail.com>
+// Copyright (C) 2020 Klarälvdalens Datakonsult AB, a KDAB Group company, <info@kdab.com>. Work sponsored by Technische Universität Dresden
//
// To see a description of the changes please see the Changelog file that
// came with your tarball or type make ChangeLog if you are building from git
@@ -1338,7 +1339,7 @@ void Annot::getRect(double *x1, double *y1, double *x2, double *y2) const
*y2 = rect->y2;
}
-void Annot::setRect(PDFRectangle *rectA)
+void Annot::setRect(const PDFRectangle *rectA)
{
setRect(rectA->x1, rectA->y1, rectA->x2, rectA->y2);
}
diff --git a/poppler/Annot.h b/poppler/Annot.h
index 0d7bf174..dea29514 100644
--- a/poppler/Annot.h
+++ b/poppler/Annot.h
@@ -34,6 +34,7 @@
// Copyright (C) 2019 Umang Malik <umang99m@gmail.com>
// Copyright (C) 2019 João Netto <joaonetto901@gmail.com>
// Copyright (C) 2020 Nelson Benítez León <nbenitezl@gmail.com>
+// Copyright (C) 2020 Klarälvdalens Datakonsult AB, a KDAB Group company, <info@kdab.com>. Work sponsored by Technische Universität Dresden
//
// To see a description of the changes please see the Changelog file that
// came with your tarball or type make ChangeLog if you are building from git
@@ -689,7 +690,7 @@ public:
double getXMax();
double getYMax();
- void setRect(PDFRectangle *rect);
+ void setRect(const PDFRectangle *rect);
void setRect(double x1, double y1, double x2, double y2);
// Sets the annot contents to new_content