summaryrefslogtreecommitdiff
path: root/editeng
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-06-19 11:03:08 +0200
committerStephan Bergmann <sbergman@redhat.com>2015-06-19 11:04:17 +0200
commit9fc05ce275526df9c5e2aa5df30c4b08a61fd0bc (patch)
tree48fcd70435cfe7e740832bc6f9c9032498ff478a /editeng
parent6776d52be6dfe3b8725fadb77b87e20a7cc639d0 (diff)
Simplify uses of OUString::replaceAll with literal arguments
Change-Id: I769cc6e11909c7f4c6394fdc4dec8a12b9a67af8
Diffstat (limited to 'editeng')
-rw-r--r--editeng/source/editeng/impedit2.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/editeng/source/editeng/impedit2.cxx b/editeng/source/editeng/impedit2.cxx
index 99f08d3a36f3..52606cfdeb8c 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;