[Libreoffice-commits] core.git: sc/source

Michael Meeks michael.meeks at collabora.com
Sat Dec 28 14:02:25 PST 2013


 sc/source/core/tool/compiler.cxx |    5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

New commits:
commit 00dbff8c223953d769d47ac24e7eb5427add1c0f
Author: Michael Meeks <michael.meeks at collabora.com>
Date:   Sat Dec 28 22:00:23 2013 +0000

    don't create and destroy SvtMiscOptions here unless its needed.
    
    Change-Id: I4b6e8136c56c824380c454272d9df4c646ec8e86

diff --git a/sc/source/core/tool/compiler.cxx b/sc/source/core/tool/compiler.cxx
index d8fbed3..7b9bced 100644
--- a/sc/source/core/tool/compiler.cxx
+++ b/sc/source/core/tool/compiler.cxx
@@ -3442,11 +3442,10 @@ bool ScCompiler::NextNewToken( bool bInArray )
     if ( cSymbol[0] < 128 )
     {
         bMayBeFuncName = rtl::isAsciiAlpha( cSymbol[0] );
-        if (!bMayBeFuncName)
+        if (!bMayBeFuncName && (cSymbol[0] == '_' && cSymbol[1] == '_') )
         {
             SvtMiscOptions aOpt;
-            if (aOpt.IsExperimentalMode())
-                bMayBeFuncName = (cSymbol[0] == '_' && cSymbol[1] == '_');
+            bMayBeFuncName = aOpt.IsExperimentalMode();
         }
 
         bAsciiNonAlnum = !bMayBeFuncName && !rtl::isAsciiDigit( cSymbol[0] );


More information about the Libreoffice-commits mailing list