summaryrefslogtreecommitdiff
path: root/editeng
diff options
context:
space:
mode:
authorTor Lillqvist <tml@iki.fi>2013-08-13 10:50:54 +0300
committerTor Lillqvist <tml@iki.fi>2013-08-13 11:06:34 +0300
commitc625772a6fed6f67d62c140de06798f6ecb4a9a8 (patch)
treebc566680990085160fd514d4f758abd11f71c195 /editeng
parent3440201b75bddd88d02127983995ac4db823bc98 (diff)
Avoid warning: rtl_uString_newFromLiteral - Found char > 127
Using a literal string that includes non-ASCII character(s) to initialise an OUString causes a warning "sal/rtl/strtmpl.cxx:1338: rtl_uString_newFromLiteral - Found char > 127". I doubt the '\xFF' in the aWordDelimiters initialiser makes sense. The initialiser contained "\0xFF" since the beginning of time, which (as said in e7a958441a19a4e14bf12aac09fa566de0f263ee) means a zero byte '\0' followed by "xFF". So '\xFF' was not included in the initialiser during all that time either. Whatever the '\xFF' means in the set of "word delimiters", quite possibly it is handled explicitly in the code anyway (grep for CH_FEATURE_OLD). Change-Id: I2998a13e6e573f85c92e66ff6edbb6354ba11b5b
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 4c1a72a883bc..dc71b16e7ae8 100644
--- a/editeng/source/editeng/impedit2.cxx
+++ b/editeng/source/editeng/impedit2.cxx
@@ -83,7 +83,7 @@ ImpEditEngine::ImpEditEngine( EditEngine* pEE, SfxItemPool* pItemPool ) :
aMinAutoPaperSize( 0x0, 0x0 ),
aMaxAutoPaperSize( 0x7FFFFFFF, 0x7FFFFFFF ),
aEditDoc( pItemPool ),
- aWordDelimiters(" .,;:-'`'?!_=\"{}()[]\xFF"),
+ aWordDelimiters(" .,;:-'`'?!_=\"{}()[]"),
bKernAsianPunctuation(false),
bAddExtLeading(false),
bIsFormatting(false),