summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2016-02-15 12:36:11 +0100
committerStephan Bergmann <sbergman@redhat.com>2016-02-15 12:36:11 +0100
commit3210bc85ae1276350f18f4795efefe491c2206c2 (patch)
tree75c8d5831620cdc1d0c9145ca4579197e5cf0d94 /sc
parenta0acad42105bc3f0304121a86f755958e38aeaac (diff)
Rename rtl::isValidCodePoint -> rtl::isUnicodeCodePoint
...and fix its documentation, and use it throughout the code base. Change-Id: I349bc2009b1b0aa7115ea90bc6ecd0a812f63698
Diffstat (limited to 'sc')
-rw-r--r--sc/source/core/tool/interpr1.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sc/source/core/tool/interpr1.cxx b/sc/source/core/tool/interpr1.cxx
index 266b0d776741..d43f5f5b1a26 100644
--- a/sc/source/core/tool/interpr1.cxx
+++ b/sc/source/core/tool/interpr1.cxx
@@ -3324,7 +3324,7 @@ void ScInterpreter::ScUnichar()
if ( MustHaveParamCount( GetByte(), 1 ) )
{
double dVal = ::rtl::math::approxFloor( GetDouble() );
- if ((dVal < 0x000000) || (dVal > 0x10FFFF))
+ if (dVal < 0 || !rtl::isUnicodeCodePoint(dVal))
PushIllegalArgument();
else
{