summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorEike Rathke <erack@redhat.com>2015-03-12 02:18:39 +0100
committerEike Rathke <erack@redhat.com>2015-03-12 02:47:15 +0100
commitdbbe0f81e23cfd8139fad1ab94f2817d3bab02e6 (patch)
tree8de4306b97db077ea22e30eda17ad76378b15654 /sc
parentc6312364b60f65d63b9f99fcbe20c159a486aadb (diff)
speed-up shortcut for non-alnum one character operators and separators
Change-Id: I57281f8e98a7427a562ede1d2dcd9ed4624f33e1
Diffstat (limited to 'sc')
-rw-r--r--sc/source/core/tool/compiler.cxx6
1 files changed, 6 insertions, 0 deletions
diff --git a/sc/source/core/tool/compiler.cxx b/sc/source/core/tool/compiler.cxx
index f1a0a02ea68a..ff06f179f991 100644
--- a/sc/source/core/tool/compiler.cxx
+++ b/sc/source/core/tool/compiler.cxx
@@ -3564,6 +3564,12 @@ bool ScCompiler::NextNewToken( bool bInArray )
bMayBeFuncName = ScGlobal::pCharClass->isLetter( aTmpStr, 0 );
bAsciiNonAlnum = false;
}
+ if (bAsciiNonAlnum && cSymbol[1] == 0)
+ {
+ // Shortcut for operators and separators that need no further checks or upper.
+ if (IsOpCode( OUString( cSymbol), bInArray ))
+ return true;
+ }
if ( bMayBeFuncName )
{
// a function name must be followed by a parenthesis