diff options
author | Miklos Vajna <vmiklos@collabora.co.uk> | 2015-08-13 09:06:55 +0200 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.co.uk> | 2015-08-13 09:07:31 +0200 |
commit | 05d355ca19487dd3d1a86980f51a56db695e4bcc (patch) | |
tree | d45e32011c4e547e8d1bb73ea165c098f286385d /sw | |
parent | 5d81c9f24fbe48a0717640c1ba6bcf882b9358e2 (diff) |
sw: use std::unique_ptr in accpara
Change-Id: I0fcc22f987208ae9fa0e99f14253856ee6faa062
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/core/access/accpara.cxx | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/sw/source/core/access/accpara.cxx b/sw/source/core/access/accpara.cxx index 90d924849a18..f7e12018ebed 100644 --- a/sw/source/core/access/accpara.cxx +++ b/sw/source/core/access/accpara.cxx @@ -17,6 +17,7 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ +#include <memory> #include <txtfrm.hxx> #include <flyfrm.hxx> #include <ndtxt.hxx> @@ -83,7 +84,6 @@ #include <unoprnms.hxx> #include <com/sun/star/text/WritingMode2.hpp> #include <viewimp.hxx> -#include <boost/scoped_ptr.hpp> #include <textmarkuphelper.hxx> #include <parachangetrackinginfo.hxx> #include <com/sun/star/text/TextMarkupType.hpp> @@ -1741,7 +1741,7 @@ void SwAccessibleParagraph::_getDefaultAttributesImpl( { // retrieve default attributes const SwTextNode* pTextNode( GetTextNode() ); - ::boost::scoped_ptr<SfxItemSet> pSet; + std::unique_ptr<SfxItemSet> pSet; if ( !bOnlyCharAttrs ) { pSet.reset( new SfxItemSet( const_cast<SwAttrPool&>(pTextNode->GetDoc()->GetAttrPool()), @@ -2102,7 +2102,7 @@ void SwAccessibleParagraph::_getSupplementalAttributesImpl( tAccParaPropValMap& rSupplementalAttrSeq ) { const SwTextNode* pTextNode( GetTextNode() ); - ::boost::scoped_ptr<SfxItemSet> pSet; + std::unique_ptr<SfxItemSet> pSet; pSet.reset( new SfxItemSet( const_cast<SwAttrPool&>(pTextNode->GetDoc()->GetAttrPool()), RES_PARATR_ADJUST, RES_PARATR_ADJUST, RES_PARATR_TABSTOP, RES_PARATR_TABSTOP, @@ -3284,7 +3284,7 @@ sal_Int32 SAL_CALL SwAccessibleParagraph::getTextMarkupCount( sal_Int32 nTextMar throw (lang::IllegalArgumentException, uno::RuntimeException, std::exception) { - boost::scoped_ptr<SwTextMarkupHelper> pTextMarkupHelper; + std::unique_ptr<SwTextMarkupHelper> pTextMarkupHelper; switch ( nTextMarkupType ) { case text::TextMarkupType::TRACK_CHANGE_INSERTION: @@ -3509,7 +3509,7 @@ sal_Int32 SAL_CALL SwAccessibleParagraph::addSelection( sal_Int32, sal_Int32 sta lang::IllegalArgumentException, uno::RuntimeException, std::exception) { - boost::scoped_ptr<SwTextMarkupHelper> pTextMarkupHelper; + std::unique_ptr<SwTextMarkupHelper> pTextMarkupHelper; switch ( nTextMarkupType ) { case text::TextMarkupType::TRACK_CHANGE_INSERTION: @@ -3544,7 +3544,7 @@ uno::Sequence< /*accessibility::*/TextSegment > SAL_CALL throw lang::IndexOutOfBoundsException(); } - boost::scoped_ptr<SwTextMarkupHelper> pTextMarkupHelper; + std::unique_ptr<SwTextMarkupHelper> pTextMarkupHelper; switch ( nTextMarkupType ) { case text::TextMarkupType::TRACK_CHANGE_INSERTION: |