From 1c25d22bfa072eb78da8930a3877f37a70ff707b Mon Sep 17 00:00:00 2001 From: Julien Nabet Date: Wed, 18 May 2022 21:52:52 +0200 Subject: Simplify an "ImportGraphic" method by removing useless pExtHeader (WmfExternal) Change-Id: I2916610e08c3157e0438ec90592fb5b8f921cc24 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/134574 Reviewed-by: Bartosz Kosiorek Tested-by: Jenkins --- xmlsecurity/workben/pdfverify.cxx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'xmlsecurity') diff --git a/xmlsecurity/workben/pdfverify.cxx b/xmlsecurity/workben/pdfverify.cxx index 6a68da04a1a1..f04db1fa62cf 100644 --- a/xmlsecurity/workben/pdfverify.cxx +++ b/xmlsecurity/workben/pdfverify.cxx @@ -41,9 +41,8 @@ void generatePreview(std::string_view rPdfPath, std::string_view rPngPath) OUString aInURL; osl::FileBase::getFileURLFromSystemPath(OUString::fromUtf8(rPdfPath), aInURL); SvFileStream aInStream(aInURL, StreamMode::READ); - WmfExternal* pExtHeader = nullptr; if (rFilter.ImportGraphic(aGraphic, u"", aInStream, GRFILTER_FORMAT_DONTKNOW, nullptr, - GraphicFilterImportFlags::NONE, pExtHeader) + GraphicFilterImportFlags::NONE) != ERRCODE_NONE) return; -- cgit