summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2020-05-06 20:59:49 +0200
committerStephan Bergmann <sbergman@redhat.com>2020-05-06 22:24:21 +0200
commitb71bf2bca1eb789fce672566a8098426e0d793f3 (patch)
treeef6ea1e2078a761e2bd1ee5ee85b95dfec8105eb
parent229ae93385e28e0dee407d9386809fa0595578bc (diff)
loplugin:makeshared
See the commit message of 78761f9b0177b0ae8ccfc5323a530fe4404b9637 "Make disabled PDF import tests compile again" for the conditions under which this code would actually be built. Change-Id: I596a7ade07d7aeb2cac0f98e7e19adad2414d26c Reviewed-on: https://gerrit.libreoffice.org/c/core/+/93587 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
-rw-r--r--sd/qa/unit/import-tests.cxx5
1 files changed, 2 insertions, 3 deletions
diff --git a/sd/qa/unit/import-tests.cxx b/sd/qa/unit/import-tests.cxx
index 158641ae4b81..e0a20087308a 100644
--- a/sd/qa/unit/import-tests.cxx
+++ b/sd/qa/unit/import-tests.cxx
@@ -13,7 +13,6 @@
#include <config_poppler.h>
#include <memory>
#include <ostream>
-#include <utility>
#include <sdpage.hxx>
#include "sdmodeltestbase.hxx"
@@ -1366,10 +1365,10 @@ void SdImportTest::testPDFImport()
void SdImportTest::testPDFImportSkipImages()
{
- auto pParams = std::make_unique<SfxAllItemSet>( SfxGetpApp()->GetPool() );
+ auto pParams = std::make_shared<SfxAllItemSet>( SfxGetpApp()->GetPool() );
pParams->Put( SfxStringItem ( SID_FILE_FILTEROPTIONS, "SkipImages" ) );
- sd::DrawDocShellRef xDocShRef = loadURL(m_directories.getURLFromSrc("/sd/qa/unit/data/pdf/txtpic.pdf"), PDF, std::move(pParams));
+ sd::DrawDocShellRef xDocShRef = loadURL(m_directories.getURLFromSrc("/sd/qa/unit/data/pdf/txtpic.pdf"), PDF, pParams);
SdDrawDocument *pDoc = xDocShRef->GetDoc();
CPPUNIT_ASSERT_MESSAGE( "no document", pDoc != nullptr );
uno::Reference< drawing::XDrawPagesSupplier > xDoc(xDocShRef->GetDoc()->getUnoModel(), uno::UNO_QUERY_THROW );