From 32042808aa43b8a45a95ef656987189ec1807f1d Mon Sep 17 00:00:00 2001 From: Miklos Vajna Date: Tue, 23 Feb 2021 21:15:28 +0100 Subject: pdfium: move PDFiumLibrary::get() impl out of the header Otherwise vcl::pdf::PDFium can't be turned into an interface. Change-Id: I9e9030e7e7ed36ec1ed777f017c521fa64588e8d Reviewed-on: https://gerrit.libreoffice.org/c/core/+/111434 Tested-by: Jenkins Reviewed-by: Miklos Vajna --- vcl/source/pdf/PDFiumLibrary.cxx | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'vcl') diff --git a/vcl/source/pdf/PDFiumLibrary.cxx b/vcl/source/pdf/PDFiumLibrary.cxx index 232ed10cb9b6..617ea16cb6eb 100644 --- a/vcl/source/pdf/PDFiumLibrary.cxx +++ b/vcl/source/pdf/PDFiumLibrary.cxx @@ -1307,6 +1307,12 @@ int PDFiumSearchHandleImpl::getSearchResultIndex() int PDFiumSearchHandleImpl::getSearchCount() { return FPDFText_GetSchCount(mpSearchHandle); } +std::shared_ptr& PDFiumLibrary::get() +{ + static auto pInstance = std::make_shared(); + return pInstance; +} + } // end vcl::pdf #endif // HAVE_FEATURE_PDFIUM -- cgit