diff options
author | Miklos Vajna <vmiklos@collabora.co.uk> | 2015-08-07 09:21:39 +0200 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.co.uk> | 2015-08-07 09:23:00 +0200 |
commit | 33aead22a90ec94e625bbc1b9808096e6c370616 (patch) | |
tree | f76144a32bab91f35fa2ca2de3d84d4b86854e55 /sw/source/core/crsr/findtxt.cxx | |
parent | 09a9234c021ad98c5adeb493b5814e97b92ee912 (diff) |
sw: use std::unique_ptr in sw-global includes
Change-Id: I7b1a313e6c36fd162878cfc9f17ae73f91a72665
Diffstat (limited to 'sw/source/core/crsr/findtxt.cxx')
-rw-r--r-- | sw/source/core/crsr/findtxt.cxx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sw/source/core/crsr/findtxt.cxx b/sw/source/core/crsr/findtxt.cxx index 042c58d01354..e08c125a9112 100644 --- a/sw/source/core/crsr/findtxt.cxx +++ b/sw/source/core/crsr/findtxt.cxx @@ -17,6 +17,8 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ +#include <memory> + #include <com/sun/star/util/SearchOptions.hpp> #include <com/sun/star/util/SearchFlags.hpp> #include <comphelper/string.hxx> @@ -661,7 +663,7 @@ int SwFindParaText::Find( SwPaM* pCrsr, SwMoveFn fnMove, const_cast<SwPaM*>(pRegion)->GetRingContainer().merge( m_rCursor.GetRingContainer() ); } - boost::scoped_ptr<OUString> pRepl( (bRegExp) + std::unique_ptr<OUString> pRepl( (bRegExp) ? ReplaceBackReferences( m_rSearchOpt, pCrsr ) : 0 ); bool const bReplaced = m_rCursor.GetDoc()->getIDocumentContentOperations().ReplaceRange( |