diff options
author | Caolán McNamara <caolanm@redhat.com> | 2015-09-18 09:09:12 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2015-09-23 11:19:17 +0000 |
commit | 177ea7a2818ee64de3eaa9b587d70fe461468005 (patch) | |
tree | 60d3838c3f7daff05fc94e4bf2d7c83b2c013041 /sd/source/ui/slidesorter/controller/SlsPageSelector.cxx | |
parent | a44e03b5d7822d026a3b2fbaf039522f085defed (diff) |
boost::shared_ptr->std::shared_ptr
Change-Id: I2c6ac98f0984534894759cfbf4449eb554801cf8
Reviewed-on: https://gerrit.libreoffice.org/18678
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sd/source/ui/slidesorter/controller/SlsPageSelector.cxx')
-rw-r--r-- | sd/source/ui/slidesorter/controller/SlsPageSelector.cxx | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sd/source/ui/slidesorter/controller/SlsPageSelector.cxx b/sd/source/ui/slidesorter/controller/SlsPageSelector.cxx index b9563ae7b814..f2603e4f0af3 100644 --- a/sd/source/ui/slidesorter/controller/SlsPageSelector.cxx +++ b/sd/source/ui/slidesorter/controller/SlsPageSelector.cxx @@ -37,7 +37,7 @@ #include "ViewShellBase.hxx" #include <com/sun/star/drawing/XDrawView.hpp> #include <com/sun/star/beans/XPropertySet.hpp> -#include <boost/shared_ptr.hpp> +#include <memory> using namespace ::com::sun::star; using namespace ::com::sun::star::uno; @@ -261,9 +261,9 @@ void PageSelector::DisableBroadcasting() mnBroadcastDisableLevel ++; } -::boost::shared_ptr<PageSelector::PageSelection> PageSelector::GetPageSelection() const +std::shared_ptr<PageSelector::PageSelection> PageSelector::GetPageSelection() const { - ::boost::shared_ptr<PageSelection> pSelection (new PageSelection()); + std::shared_ptr<PageSelection> pSelection (new PageSelection()); pSelection->reserve(GetSelectedPageCount()); int nPageCount = GetPageCount(); @@ -278,7 +278,7 @@ void PageSelector::DisableBroadcasting() } void PageSelector::SetPageSelection ( - const ::boost::shared_ptr<PageSelection>& rpSelection, + const std::shared_ptr<PageSelection>& rpSelection, const bool bUpdateCurrentPage) { PageSelection::const_iterator iPage; @@ -322,7 +322,7 @@ void PageSelector::UpdateCurrentPage (const bool bUpdateOnlyWhenPending) // selection to just the new current slide. To prevent that, // we store (and at the end of this scope restore) the current // selection. - ::boost::shared_ptr<PageSelection> pSelection (GetPageSelection()); + std::shared_ptr<PageSelection> pSelection (GetPageSelection()); mrController.GetCurrentSlideManager()->SwitchCurrentSlide(pCurrentPageDescriptor); |