summaryrefslogtreecommitdiff
path: root/unotools
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2018-01-03 14:08:19 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2018-01-04 07:17:23 +0100
commit21e0d8162a0e683558c4d042ce688fc9a6833809 (patch)
tree8c93a0158d7669b1e92a43c65b6b4a7a7eeca685 /unotools
parent5de151f0fd7b590ae13560086b46ea84e4d9cf9c (diff)
loplugin:unusedfields
fix the ReturnStmt check Change-Id: I95076076bd1313d23798c4615ea12910c86ed9a8 Reviewed-on: https://gerrit.libreoffice.org/47309 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'unotools')
-rw-r--r--unotools/source/i18n/textsearch.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/unotools/source/i18n/textsearch.cxx b/unotools/source/i18n/textsearch.cxx
index bcf9efc4d718..baddd527d2b3 100644
--- a/unotools/source/i18n/textsearch.cxx
+++ b/unotools/source/i18n/textsearch.cxx
@@ -60,7 +60,6 @@ SearchParam::SearchParam( const OUString &rText,
SearchParam::SearchParam( const SearchParam& rParam )
{
sSrchStr = rParam.sSrchStr;
- sReplaceStr = rParam.sReplaceStr;
m_eSrchType = rParam.m_eSrchType;
m_cWildEscChar = rParam.m_cWildEscChar;
@@ -203,7 +202,7 @@ void TextSearch::Init( const SearchParam & rParam,
for (;;) std::abort();
}
aSOpt.searchString = rParam.GetSrchStr();
- aSOpt.replaceString = rParam.GetReplaceStr();
+ aSOpt.replaceString = "";
aSOpt.Locale = rLocale;
aSOpt.transliterateFlags = TransliterationFlags::NONE;
if( !rParam.IsCaseSensitive() )