diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-06-25 19:10:54 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-06-26 11:01:43 +0200 |
commit | b59b4a38b45e1bf158701355c8c70f1c59f3e112 (patch) | |
tree | e40ff4daa9acec5031a28453ad8686bd6267b024 /sd/source/ui/sidebar/MasterPageContainer.cxx | |
parent | 742f030d67f3d4179d3d0153cc16be35095eb580 (diff) |
loplugin:oncevar in sd
Change-Id: I56649b4df8c517f152ed4e9132985bbef22f8634
Reviewed-on: https://gerrit.libreoffice.org/39241
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sd/source/ui/sidebar/MasterPageContainer.cxx')
-rw-r--r-- | sd/source/ui/sidebar/MasterPageContainer.cxx | 3 |
1 files changed, 1 insertions, 2 deletions
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<frame::XModel> MasterPageContainer::Implementation::GetModel() xSlideSupplier->getDrawPages(), uno::UNO_QUERY); if (xSlides.is()) { - sal_Int32 nIndex (0); - uno::Reference<drawing::XDrawPage> xNewPage (xSlides->insertNewByIndex(nIndex)); + uno::Reference<drawing::XDrawPage> xNewPage (xSlides->insertNewByIndex(0)); uno::Reference<beans::XPropertySet> xProperties(xNewPage, uno::UNO_QUERY); if (xProperties.is()) xProperties->setPropertyValue( |