summaryrefslogtreecommitdiff
path: root/xmlsecurity
diff options
context:
space:
mode:
authorJulien Nabet <serval2412@yahoo.fr>2022-05-18 21:52:52 +0200
committerJulien Nabet <serval2412@yahoo.fr>2022-05-19 10:55:06 +0200
commit1c25d22bfa072eb78da8930a3877f37a70ff707b (patch)
tree50709e859edb0b1c0f31b344b0511959657a656e /xmlsecurity
parentd4ab6a4693c0f3147b086173d5a9787f1f0eee34 (diff)
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 <gang65@poczta.onet.pl> Tested-by: Jenkins
Diffstat (limited to 'xmlsecurity')
-rw-r--r--xmlsecurity/workben/pdfverify.cxx3
1 files changed, 1 insertions, 2 deletions
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;