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
e7a958441a) 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
This commit is contained in:
Tor Lillqvist
2013-08-13 10:50:54 +03:00
parent 3440201b75
commit c625772a6f

View File

@@ -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),