summaryrefslogtreecommitdiff
path: root/poppler/PDFDocBuilder.h
diff options
context:
space:
mode:
Diffstat (limited to 'poppler/PDFDocBuilder.h')
-rw-r--r--poppler/PDFDocBuilder.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/poppler/PDFDocBuilder.h b/poppler/PDFDocBuilder.h
index a9231f01..d0bd1ea6 100644
--- a/poppler/PDFDocBuilder.h
+++ b/poppler/PDFDocBuilder.h
@@ -5,7 +5,7 @@
// This file is licensed under the GPLv2 or later
//
// Copyright 2010 Hib Eris <hib@hiberis.nl>
-// Copyright 2010, 2018, 2020 Albert Astals Cid <aacid@kde.org>
+// Copyright 2010, 2018, 2020, 2022 Albert Astals Cid <aacid@kde.org>
// Copyright 2021 Oliver Sander <oliver.sander@tu-dresden.de>
//
//========================================================================
@@ -38,7 +38,7 @@ public:
// Builds a new PDFDoc. Returns a PDFDoc. You should check this PDFDoc
// with PDFDoc::isOk() for failures.
// The caller is responsible for deleting ownerPassword, userPassWord and guiData.
- virtual std::unique_ptr<PDFDoc> buildPDFDoc(const GooString &uri, GooString *ownerPassword = nullptr, GooString *userPassword = nullptr, void *guiDataA = nullptr) = 0;
+ virtual std::unique_ptr<PDFDoc> buildPDFDoc(const GooString &uri, const std::optional<GooString> &ownerPassword = {}, const std::optional<GooString> &userPassword = {}, void *guiDataA = nullptr) = 0;
// Returns true if the builder supports building a PDFDoc from the URI.
virtual bool supports(const GooString &uri) = 0;