diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2015-06-19 11:03:08 +0200 |
---|---|---|
committer | Ashod Nakashian <ashod.nakashian@collabora.co.uk> | 2016-02-06 11:30:38 -0500 |
commit | a7953c080b5585a47e94524b5d35a7dbb6fea9a1 (patch) | |
tree | da01448dfd000158c8332c96df2439ade508252c /editeng/source | |
parent | 57027233275260b066442037a904ec34a703ae09 (diff) |
Simplify uses of OUString::replaceAll with literal arguments
Change-Id: I769cc6e11909c7f4c6394fdc4dec8a12b9a67af8
(cherry picked from commit 9fc05ce275526df9c5e2aa5df30c4b08a61fd0bc)
Diffstat (limited to 'editeng/source')
-rw-r--r-- | editeng/source/editeng/impedit2.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/editeng/source/editeng/impedit2.cxx b/editeng/source/editeng/impedit2.cxx index 2e108de197e2..6138f559c756 100644 --- a/editeng/source/editeng/impedit2.cxx +++ b/editeng/source/editeng/impedit2.cxx @@ -1552,7 +1552,7 @@ EditSelection ImpEditEngine::SelectSentence( const EditSelection& rCurSel ) const ContentNode* pNode = rPaM.GetNode(); // #i50710# line breaks are marked with 0x01 - the break iterator prefers 0x0a for that OUString sParagraph = pNode->GetString(); - sParagraph = sParagraph.replaceAll(OUString(0x01), OUString(0x0a)); + sParagraph = sParagraph.replaceAll("\x01", "\x0a"); //return Null if search starts at the beginning of the string sal_Int32 nStart = rPaM.GetIndex() ? _xBI->beginOfSentence( sParagraph, rPaM.GetIndex(), GetLocale( rPaM ) ) : 0; |