diff -ru libreoffice-25.8.2.2.orig/sdext/source/pdfimport/xpdfwrapper/wrapper_gpl.cxx libreoffice-25.8.2.2/sdext/source/pdfimport/xpdfwrapper/wrapper_gpl.cxx
|
old
|
new
|
|
| 216 | 216 | : nullptr)); |
| 217 | 217 | #if POPPLER_CHECK_VERSION(22, 6, 0) |
| 218 | 218 | pDocUnique = std::unique_ptr<PDFDoc>( |
| | 219 | #if POPPLER_CHECK_VERSION(25, 10, 0) |
| | 220 | new PDFDoc(pFileName->copy(), |
| | 221 | pOwnerPasswordStr ? std::optional<GooString>(pOwnerPasswordStr->toStr()) : std::nullopt, |
| | 222 | pUserPasswordStr ? std::optional<GooString>(pUserPasswordStr->toStr()) : std::nullopt)); |
| | 223 | #else |
| 219 | 224 | new PDFDoc(std::make_unique<GooString>(pFileName), |
| 220 | 225 | std::optional<GooString>(pOwnerPasswordStr), |
| 221 | 226 | std::optional<GooString>(pUserPasswordStr))); |
| | 227 | #endif |
| 222 | 228 | #else |
| 223 | 229 | pDocUnique = std::unique_ptr<PDFDoc>( |
| 224 | 230 | new PDFDoc(pFileName, pOwnerPasswordStr, pUserPasswordStr)); |