summaryrefslogtreecommitdiff
path: root/sw/source/core/crsr/crstrvl.cxx
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@collabora.co.uk>2015-08-07 09:21:39 +0200
committerMiklos Vajna <vmiklos@collabora.co.uk>2015-08-07 09:23:00 +0200
commit33aead22a90ec94e625bbc1b9808096e6c370616 (patch)
treef76144a32bab91f35fa2ca2de3d84d4b86854e55 /sw/source/core/crsr/crstrvl.cxx
parent09a9234c021ad98c5adeb493b5814e97b92ee912 (diff)
sw: use std::unique_ptr in sw-global includes
Change-Id: I7b1a313e6c36fd162878cfc9f17ae73f91a72665
Diffstat (limited to 'sw/source/core/crsr/crstrvl.cxx')
-rw-r--r--sw/source/core/crsr/crstrvl.cxx5
1 files changed, 3 insertions, 2 deletions
diff --git a/sw/source/core/crsr/crstrvl.cxx b/sw/source/core/crsr/crstrvl.cxx
index c86188889cd1..a7086a1c6a0f 100644
--- a/sw/source/core/crsr/crstrvl.cxx
+++ b/sw/source/core/crsr/crstrvl.cxx
@@ -17,6 +17,7 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
+#include <memory>
#include <hintids.hxx>
#include <comphelper/string.hxx>
#include <svl/itemiter.hxx>
@@ -615,8 +616,8 @@ lcl_FindField(bool & o_rFound, _SetGetExpFields const& rSrtLst,
SwTextField *const pTextField, SwPosition const& rPos,
sal_Int32 const nContentOffset)
{
- boost::scoped_ptr<_SetGetExpField> pSrch;
- boost::scoped_ptr<SwIndex> pIndex;
+ std::unique_ptr<_SetGetExpField> pSrch;
+ std::unique_ptr<SwIndex> pIndex;
if (-1 == nContentOffset)
{
pSrch.reset(new _SetGetExpField(rPos.nNode, pTextField, &rPos.nContent));