Kaydet (Commit) 86801fd5 authored tarafından Arnaud Versini's avatar Arnaud Versini Kaydeden (comit) Noel Grandin

basic : Make NeedEsc easier to read

Change-Id: Ie2ee404a51262cd08673268169a41255abf012bd
Reviewed-on: https://gerrit.libreoffice.org/31600Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarNoel Grandin <noel.grandin@collabora.co.uk>
üst 2a5d8d73
...@@ -1400,11 +1400,11 @@ namespace ...@@ -1400,11 +1400,11 @@ namespace
{ {
bool NeedEsc(sal_Unicode cCode) bool NeedEsc(sal_Unicode cCode)
{ {
if((cCode & 0xFF80)) if(!rtl::isAscii(cCode))
{ {
return false; return false;
} }
switch((sal_uInt8)(cCode & 0x07F)) switch(cCode)
{ {
case '.': case '.':
case '^': case '^':
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment