From 74c21e709495b16787f5d6598cebf322416ce455 Mon Sep 17 00:00:00 2001 From: Tomaž Vajngerl Date: Sun, 22 Mar 2015 20:26:39 +0900 Subject: LinePropertyPanel - scoped_ptr -> unique_ptr Change-Id: I52708b6ca13f76391355b1c0eefc1dcf22dcc273 --- svx/source/sidebar/line/LinePropertyPanel.cxx | 12 ++++++------ svx/source/sidebar/line/LinePropertyPanel.hxx | 9 ++++----- 2 files changed, 10 insertions(+), 11 deletions(-) diff --git a/svx/source/sidebar/line/LinePropertyPanel.cxx b/svx/source/sidebar/line/LinePropertyPanel.cxx index f7a91e709f8a..052e16e7f47b 100644 --- a/svx/source/sidebar/line/LinePropertyPanel.cxx +++ b/svx/source/sidebar/line/LinePropertyPanel.cxx @@ -166,8 +166,8 @@ LinePropertyPanel::LinePropertyPanel( mnTrans(0), meMapUnit(SFX_MAPUNIT_MM), mnWidthCoreValue(0), - mpStartItem(0), - mpEndItem(0), + mpStartItem(), + mpEndItem(), maLineWidthPopup(this, ::boost::bind(&LinePropertyPanel::CreateLineWidthPopupControl, this, _1)), maIMGNone(SVX_RES(IMG_NONE_ICON)), mpIMGWidthIcon(), @@ -637,7 +637,7 @@ IMPL_LINK(LinePropertyPanel, ChangeStartHdl, void*, EMPTYARG) sal_Int32 nPos = mpLBStart->GetSelectEntryPos(); if( nPos != LISTBOX_ENTRY_NOTFOUND && mpLBStart->IsValueChangedFromSaved() ) { - boost::scoped_ptr pItem; + std::unique_ptr pItem; if( nPos == 0 ) pItem.reset(new XLineStartItem()); else if( mxLineEndList.is() && mxLineEndList->Count() > (long) ( nPos - 1 ) ) @@ -652,7 +652,7 @@ IMPL_LINK(LinePropertyPanel, ChangeEndHdl, void*, EMPTYARG) sal_Int32 nPos = mpLBEnd->GetSelectEntryPos(); if( nPos != LISTBOX_ENTRY_NOTFOUND && mpLBEnd->IsValueChangedFromSaved() ) { - boost::scoped_ptr pItem; + std::unique_ptr pItem; if( nPos == 0 ) pItem.reset(new XLineEndItem()); else if( mxLineEndList.is() && mxLineEndList->Count() > (long) ( nPos - 1 ) ) @@ -668,7 +668,7 @@ IMPL_LINK(LinePropertyPanel, ChangeEdgeStyleHdl, void*, EMPTYARG) if(LISTBOX_ENTRY_NOTFOUND != nPos && mpLBEdgeStyle->IsValueChangedFromSaved()) { - boost::scoped_ptr pItem; + std::unique_ptr pItem; switch(nPos) { @@ -705,7 +705,7 @@ IMPL_LINK(LinePropertyPanel, ChangeCapStyleHdl, void*, EMPTYARG) if(LISTBOX_ENTRY_NOTFOUND != nPos && mpLBCapStyle->IsValueChangedFromSaved()) { - boost::scoped_ptr pItem; + std::unique_ptr pItem; switch(nPos) { diff --git a/svx/source/sidebar/line/LinePropertyPanel.hxx b/svx/source/sidebar/line/LinePropertyPanel.hxx index e9836837221b..586573f506ed 100644 --- a/svx/source/sidebar/line/LinePropertyPanel.hxx +++ b/svx/source/sidebar/line/LinePropertyPanel.hxx @@ -25,7 +25,6 @@ #include #include #include -#include #include #include #include @@ -111,16 +110,16 @@ private: sfx2::sidebar::ControllerItem maEdgeStyle; sfx2::sidebar::ControllerItem maCapStyle; - boost::scoped_ptr mpStyleItem; - boost::scoped_ptr mpDashItem; + std::unique_ptr mpStyleItem; + std::unique_ptr mpDashItem; sal_uInt16 mnTrans; SfxMapUnit meMapUnit; sal_Int32 mnWidthCoreValue; XLineEndListRef mxLineEndList; XDashListRef mxLineStyleList; - boost::scoped_ptr mpStartItem; - boost::scoped_ptr mpEndItem; + std::unique_ptr mpStartItem; + std::unique_ptr mpEndItem; //popup windows LineWidthPopup maLineWidthPopup; -- cgit