[Libreoffice-commits] core.git: basic/source
Arnaud Versini
arnaud.versini at gmail.com
Mon Dec 5 05:53:15 UTC 2016
basic/source/runtime/runtime.cxx | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
New commits:
commit 86801fd5c1c0b02587ffb3082f4db63e7ef720ba
Author: Arnaud Versini <arnaud.versini at gmail.com>
Date: Sun Dec 4 19:58:38 2016 +0100
basic : Make NeedEsc easier to read
Change-Id: Ie2ee404a51262cd08673268169a41255abf012bd
Reviewed-on: https://gerrit.libreoffice.org/31600
Tested-by: Jenkins <ci at libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin at collabora.co.uk>
diff --git a/basic/source/runtime/runtime.cxx b/basic/source/runtime/runtime.cxx
index 030a75f..64a286e 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 '^':
More information about the Libreoffice-commits
mailing list