diff options
author | Noel Grandin <noel@peralex.com> | 2016-07-01 13:20:11 +0200 |
---|---|---|
committer | Noel Grandin <noelgrandin@gmail.com> | 2016-07-04 06:49:52 +0000 |
commit | 7855ea48309ee2ba06ee5f3d5dac27ecfc4ca4a6 (patch) | |
tree | 359d2a334303f6e32582981efef6e6e0d6b69e01 /sw/source/core/edit | |
parent | cd71034b26a404c8f9b763865ef6ebdd0adeebb7 (diff) |
remove comphelper::string::remove
and replace it with OUString/OString::replaceAll
Change-Id: I37b1c3b51251dfd9d749d6f1060c75b3a93d7f1a
Reviewed-on: https://gerrit.libreoffice.org/26850
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'sw/source/core/edit')
-rw-r--r-- | sw/source/core/edit/editsh.cxx | 2 | ||||
-rw-r--r-- | sw/source/core/edit/edlingu.cxx | 5 |
2 files changed, 3 insertions, 4 deletions
diff --git a/sw/source/core/edit/editsh.cxx b/sw/source/core/edit/editsh.cxx index 43aa82fab6e2..83cc9dfd9793 100644 --- a/sw/source/core/edit/editsh.cxx +++ b/sw/source/core/edit/editsh.cxx @@ -673,7 +673,7 @@ void SwEditShell::GetINetAttrs( SwGetINetAttrs& rArr ) OUString sText( pTextNd->GetExpandText( rAttr.GetStart(), *rAttr.GetEnd() - rAttr.GetStart() ) ); - sText = comphelper::string::remove(sText, 0x0a); + sText = sText.replaceAll(OUStringLiteral1<0x0a>(), ""); sText = comphelper::string::strip(sText, ' '); if( !sText.isEmpty() ) diff --git a/sw/source/core/edit/edlingu.cxx b/sw/source/core/edit/edlingu.cxx index b517487a6c51..17a2b29b4b40 100644 --- a/sw/source/core/edit/edlingu.cxx +++ b/sw/source/core/edit/edlingu.cxx @@ -861,9 +861,8 @@ uno::Reference< XSpellAlternatives > if( pWrong->InWrongWord(nBegin,nLen) && !pNode->IsSymbol(nBegin) ) { const OUString aText(pNode->GetText().copy(nBegin, nLen)); - OUString aWord( aText ); - aWord = comphelper::string::remove(aWord, CH_TXTATR_BREAKWORD); - aWord = comphelper::string::remove(aWord, CH_TXTATR_INWORD); + OUString aWord = aText.replaceAll(OUStringLiteral1<CH_TXTATR_BREAKWORD>(), "") + .replaceAll(OUString(CH_TXTATR_INWORD), ""); uno::Reference< XSpellChecker1 > xSpell( ::GetSpellChecker() ); if( xSpell.is() ) |