diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2016-11-17 13:16:30 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2016-11-17 13:10:42 +0000 |
commit | bb674aa5503ff40a5619d1fb4c9f310da5f5c983 (patch) | |
tree | e9b6d62f258cded0a5f207609a61157c8d0ef4c2 /sd/source/ui | |
parent | b79cf88a048e5d8c784c97d99155104aef3d5dca (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')
-rw-r--r-- | sd/source/ui/dlg/custsdlg.cxx | 2 | ||||
-rw-r--r-- | sd/source/ui/unoidl/unocpres.cxx | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/sd/source/ui/dlg/custsdlg.cxx b/sd/source/ui/dlg/custsdlg.cxx index 1fce442ae152..8c6673011075 100644 --- a/sd/source/ui/dlg/custsdlg.cxx +++ b/sd/source/ui/dlg/custsdlg.cxx @@ -338,7 +338,7 @@ SdDefineCustomShowDlg::SdDefineCustomShowDlg( vcl::Window* pWindow, } else { - rpCustomShow = new SdCustomShow( &rDoc ); + rpCustomShow = new SdCustomShow; m_pEdtName->SetText( OUString( SdResId( STR_NEW_CUSTOMSHOW ) ) ); m_pEdtName->SetSelection( Selection( SELECTION_MIN, SELECTION_MAX ) ); rpCustomShow->SetName( m_pEdtName->GetText() ); 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 |