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

New commits:
commit 8d2a3e533024b01c8ec7fe3170d29877bbf4af5e
Author: Albert Astals Cid <[email protected]>
Date:   Sun Feb 10 10:03:05 2019 +0100

    constify saveAs GooStrings

diff --git a/poppler/PDFDoc.cc b/poppler/PDFDoc.cc
index e64638b7..8e7b4733 100644
--- a/poppler/PDFDoc.cc
+++ b/poppler/PDFDoc.cc
@@ -862,7 +862,7 @@ Hints *PDFDoc::getHints()
   return hints;
 }
 
-int PDFDoc::savePageAs(GooString *name, int pageNo) 
+int PDFDoc::savePageAs(const GooString *name, int pageNo)
 {
   FILE *f;
   OutStream *outStr;
@@ -1026,7 +1026,7 @@ int PDFDoc::savePageAs(GooString *name, int pageNo)
   return errNone;
 }
 
-int PDFDoc::saveAs(GooString *name, PDFWriteMode mode) {
+int PDFDoc::saveAs(const GooString *name, PDFWriteMode mode) {
   FILE *f;
   OutStream *outStr;
   int res;
@@ -1058,7 +1058,7 @@ int PDFDoc::saveAs(OutStream *outStr, PDFWriteMode mode) {
   return errNone;
 }
 
-int PDFDoc::saveWithoutChangesAs(GooString *name) {
+int PDFDoc::saveWithoutChangesAs(const GooString *name) {
   FILE *f;
   OutStream *outStr;
   int res;
diff --git a/poppler/PDFDoc.h b/poppler/PDFDoc.h
index 1a1e3760..6f27a5f1 100644
--- a/poppler/PDFDoc.h
+++ b/poppler/PDFDoc.h
@@ -14,7 +14,7 @@
 // under GPL version 2 or later
 //
 // Copyright (C) 2005, 2006, 2008 Brad Hards <[email protected]>
-// Copyright (C) 2005, 2009, 2014, 2015, 2017, 2018 Albert Astals Cid 
<[email protected]>
+// Copyright (C) 2005, 2009, 2014, 2015, 2017-2019 Albert Astals Cid 
<[email protected]>
 // Copyright (C) 2008 Julien Rebetez <[email protected]>
 // Copyright (C) 2008 Pino Toscano <[email protected]>
 // Copyright (C) 2008 Carlos Garcia Campos <[email protected]>
@@ -316,13 +316,13 @@ public:
   bool getID(GooString *permanent_id, GooString *update_id) const;
 
   // Save one page with another name.
-  int savePageAs(GooString *name, int pageNo);
+  int savePageAs(const GooString *name, int pageNo);
   // Save this file with another name.
-  int saveAs(GooString *name, PDFWriteMode mode=writeStandard);
+  int saveAs(const GooString *name, PDFWriteMode mode=writeStandard);
   // Save this file in the given output stream.
   int saveAs(OutStream *outStr, PDFWriteMode mode=writeStandard);
   // Save this file with another name without saving changes
-  int saveWithoutChangesAs(GooString *name);
+  int saveWithoutChangesAs(const GooString *name);
   // Save this file in the given output stream without saving changes
   int saveWithoutChangesAs(OutStream *outStr);
 
_______________________________________________
poppler mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/poppler

Reply via email to