diff options
author | Arnaud Versini <arnaud.versini@gmail.com> | 2016-12-04 19:58:38 +0100 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2016-12-05 05:52:48 +0000 |
commit | 86801fd5c1c0b02587ffb3082f4db63e7ef720ba (patch) | |
tree | fd1d4f17838b339e79c4d70cfa1ca2f40dc82915 | |
parent | 2a5d8d7306776cc59a6311f20f32e1007dcac858 (diff) |
basic : Make NeedEsc easier to read
Change-Id: Ie2ee404a51262cd08673268169a41255abf012bd
Reviewed-on: https://gerrit.libreoffice.org/31600
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
-rw-r--r-- | basic/source/runtime/runtime.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/basic/source/runtime/runtime.cxx b/basic/source/runtime/runtime.cxx index 030a75f39986..64a286eb3d3e 100644 --- a/basic/source/runtime/runtime.cxx +++ b/basic/source/runtime/runtime.cxx @@ -1400,11 +1400,11 @@ namespace { bool NeedEsc(sal_Unicode cCode) { - if((cCode & 0xFF80)) + if(!rtl::isAscii(cCode)) { return false; } - switch((sal_uInt8)(cCode & 0x07F)) + switch(cCode) { case '.': case '^': |