diff options
Diffstat (limited to 'sd/source/ui/slidesorter/model/SlideSorterModel.cxx')
-rw-r--r-- | sd/source/ui/slidesorter/model/SlideSorterModel.cxx | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/sd/source/ui/slidesorter/model/SlideSorterModel.cxx b/sd/source/ui/slidesorter/model/SlideSorterModel.cxx index 6baca008835b..68fc9a0450ed 100644 --- a/sd/source/ui/slidesorter/model/SlideSorterModel.cxx +++ b/sd/source/ui/slidesorter/model/SlideSorterModel.cxx @@ -562,11 +562,10 @@ void SlideSorterModel::InsertSlide (SdPage* pPage) // Insert the given page at index nIndex maPageDescriptors.insert( maPageDescriptors.begin()+nIndex, - SharedPageDescriptor( - new PageDescriptor ( + std::make_shared<PageDescriptor>( Reference<drawing::XDrawPage>(mxSlides->getByIndex(nIndex),UNO_QUERY), pPage, - nIndex))); + nIndex)); // Update page indices. UpdateIndices(nIndex+1); |