diff --git a/poppler/PDFDoc.cc b/poppler/PDFDoc.cc index e64638b7bf88b2ec4caf7dbc4483a57e0a7fb430..8e7b4733674b272245ac8bdf57980f5b0dd77bab 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 1a1e3760d4436d48bf9dad3d1ba8e049cfdb6e54..6f27a5f1a3e6dfd16fef169fff27f753b6fad8b8 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 -// Copyright (C) 2005, 2009, 2014, 2015, 2017, 2018 Albert Astals Cid +// Copyright (C) 2005, 2009, 2014, 2015, 2017-2019 Albert Astals Cid // Copyright (C) 2008 Julien Rebetez // Copyright (C) 2008 Pino Toscano // Copyright (C) 2008 Carlos Garcia Campos @@ -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);