[poppler] poppler/PDFDoc.cc poppler/PDFDoc.h

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Sun Oct 21 15:39:35 UTC 2018


 poppler/PDFDoc.cc |    2 +-
 poppler/PDFDoc.h  |    6 +++---
 2 files changed, 4 insertions(+), 4 deletions(-)

New commits:
commit f5e3f799eb791c0dae3acf12283c574bf4e008c0
Author: Albert Astals Cid <aacid at kde.org>
Date:   Sun Oct 21 17:39:21 2018 +0200

    PDFDoc: Add some const

diff --git a/poppler/PDFDoc.cc b/poppler/PDFDoc.cc
index 656eecc1..e7cf65f5 100644
--- a/poppler/PDFDoc.cc
+++ b/poppler/PDFDoc.cc
@@ -817,7 +817,7 @@ get_id (const GooString *encodedidstring, GooString *id) {
   return gTrue;
 }
 
-GBool PDFDoc::getID(GooString *permanent_id, GooString *update_id) {
+GBool PDFDoc::getID(GooString *permanent_id, GooString *update_id) const {
   Object obj = xref->getTrailerDict()->dictLookup ("ID");
 
   if (obj.isArray() && obj.arrayGetLength() == 2) {
diff --git a/poppler/PDFDoc.h b/poppler/PDFDoc.h
index 24a4a019..a2807054 100644
--- a/poppler/PDFDoc.h
+++ b/poppler/PDFDoc.h
@@ -309,11 +309,11 @@ public:
   PDFSubtypeConformance getPDFSubtypeConformance() const { return pdfConformance; }
 
   // Return the PDF version specified by the file.
-  int getPDFMajorVersion() { return pdfMajorVersion; }
-  int getPDFMinorVersion() { return pdfMinorVersion; }
+  int getPDFMajorVersion() const { return pdfMajorVersion; }
+  int getPDFMinorVersion() const { return pdfMinorVersion; }
 
   //Return the PDF ID in the trailer dictionary (if any).
-  GBool getID(GooString *permanent_id, GooString *update_id);
+  GBool getID(GooString *permanent_id, GooString *update_id) const;
 
   // Save one page with another name.
   int savePageAs(GooString *name, int pageNo);


More information about the poppler mailing list