From b59b4a38b45e1bf158701355c8c70f1c59f3e112 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Sun, 25 Jun 2017 19:10:54 +0200 Subject: loplugin:oncevar in sd Change-Id: I56649b4df8c517f152ed4e9132985bbef22f8634 Reviewed-on: https://gerrit.libreoffice.org/39241 Tested-by: Jenkins Reviewed-by: Noel Grandin --- sd/source/ui/sidebar/MasterPageContainer.cxx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'sd/source/ui/sidebar/MasterPageContainer.cxx') diff --git a/sd/source/ui/sidebar/MasterPageContainer.cxx b/sd/source/ui/sidebar/MasterPageContainer.cxx index 5deddae4e7f6..e905b85254bd 100644 --- a/sd/source/ui/sidebar/MasterPageContainer.cxx +++ b/sd/source/ui/sidebar/MasterPageContainer.cxx @@ -848,8 +848,7 @@ Reference MasterPageContainer::Implementation::GetModel() xSlideSupplier->getDrawPages(), uno::UNO_QUERY); if (xSlides.is()) { - sal_Int32 nIndex (0); - uno::Reference xNewPage (xSlides->insertNewByIndex(nIndex)); + uno::Reference xNewPage (xSlides->insertNewByIndex(0)); uno::Reference xProperties(xNewPage, uno::UNO_QUERY); if (xProperties.is()) xProperties->setPropertyValue( -- cgit