summaryrefslogtreecommitdiff
path: root/sw/source/core/crsr/findtxt.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2018-10-16 15:23:12 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2018-10-17 08:25:47 +0200
commitccb2a1f650bc505f8a4f1abebf8ce4f9396562a8 (patch)
tree2ee2fd4f300ae95cf23bade1f242e02f9b276c07 /sw/source/core/crsr/findtxt.cxx
parentda5c3a1ee43dd1a07cbd1b8005488bf05432593d (diff)
clang-tidy readability-redundant-smartptr-get
redundant get() call on smart pointer Change-Id: Icb5a03bbc15e79a30d3d135a507d22914d15c2bd Reviewed-on: https://gerrit.libreoffice.org/61837 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw/source/core/crsr/findtxt.cxx')
-rw-r--r--sw/source/core/crsr/findtxt.cxx7
1 files changed, 2 insertions, 5 deletions
diff --git a/sw/source/core/crsr/findtxt.cxx b/sw/source/core/crsr/findtxt.cxx
index 60654d3aace7..73f6feee297a 100644
--- a/sw/source/core/crsr/findtxt.cxx
+++ b/sw/source/core/crsr/findtxt.cxx
@@ -679,11 +679,8 @@ int SwFindParaText::Find( SwPaM* pCursor, SwMoveFnCollection const & fnMove,
std::unique_ptr<OUString> pRepl( bRegExp
? ReplaceBackReferences( m_rSearchOpt, pCursor ) : nullptr );
- bool const bReplaced =
- m_rCursor.GetDoc()->getIDocumentContentOperations().ReplaceRange(
- *pCursor,
- (pRepl.get()) ? *pRepl : m_rSearchOpt.replaceString,
- bRegExp );
+ bool const bReplaced = m_rCursor.GetDoc()->getIDocumentContentOperations().ReplaceRange(
+ *pCursor, pRepl ? *pRepl : m_rSearchOpt.replaceString, bRegExp);
m_rCursor.SaveTableBoxContent( pCursor->GetPoint() );
if( bRegExp )