summaryrefslogtreecommitdiff
path: root/sd/source/ui/unoidl/unocpres.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2016-11-17 13:16:30 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2016-11-17 13:10:42 +0000
commitbb674aa5503ff40a5619d1fb4c9f310da5f5c983 (patch)
treee9b6d62f258cded0a5f207609a61157c8d0ef4c2 /sd/source/ui/unoidl/unocpres.cxx
parentb79cf88a048e5d8c784c97d99155104aef3d5dca (diff)
loplugin:unusedfields
Change-Id: Id2dbbf384637223db3d334d95332251832918003 Reviewed-on: https://gerrit.libreoffice.org/30927 Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk> Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sd/source/ui/unoidl/unocpres.cxx')
-rw-r--r--sd/source/ui/unoidl/unocpres.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sd/source/ui/unoidl/unocpres.cxx b/sd/source/ui/unoidl/unocpres.cxx
index c2d7bd5230ea..61cddf6c2929 100644
--- a/sd/source/ui/unoidl/unocpres.cxx
+++ b/sd/source/ui/unoidl/unocpres.cxx
@@ -108,7 +108,7 @@ void SAL_CALL SdXCustomPresentation::insertByIndex( sal_Int32 Index, const uno::
mpModel = pPage->GetModel();
if( nullptr != mpModel && nullptr == mpSdCustomShow && mpModel->GetDoc() )
- mpSdCustomShow = new SdCustomShow( mpModel->GetDoc() );
+ mpSdCustomShow = new SdCustomShow;
mpSdCustomShow->PagesVector().insert(mpSdCustomShow->PagesVector().begin() + Index,
static_cast<SdPage*>(pPage->GetSdrPage()));
@@ -349,7 +349,7 @@ void SAL_CALL SdXCustomPresentationAccess::insertByName( const OUString& aName,
SdCustomShow* pShow = pXShow->GetSdCustomShow();
if( nullptr == pShow )
{
- pShow = new SdCustomShow( mrModel.GetDoc(), xContainer );
+ pShow = new SdCustomShow( xContainer );
pXShow->SetSdCustomShow( pShow );
}
else