summaryrefslogtreecommitdiff
path: root/formula
diff options
context:
space:
mode:
authorEike Rathke <erack@redhat.com>2016-08-03 15:11:54 +0200
committerEike Rathke <erack@redhat.com>2016-08-03 15:16:50 +0200
commitf21a73bc5b1f13708e0f3ccd2c9d654c3ddc76be (patch)
tree9aa345872aac0deab30219b371348fde9a5c7c86 /formula
parent41eb7eef764d32b4e210a2ec5a745535418fb870 (diff)
InitSymbolsAPI() for FormulaLanguage::API
Change-Id: I203557ed50d0d54fe9977e3d51e7f979551b472b
Diffstat (limited to 'formula')
-rw-r--r--formula/source/core/api/FormulaCompiler.cxx16
1 files changed, 5 insertions, 11 deletions
diff --git a/formula/source/core/api/FormulaCompiler.cxx b/formula/source/core/api/FormulaCompiler.cxx
index dd728def725c..86ac30a09442 100644
--- a/formula/source/core/api/FormulaCompiler.cxx
+++ b/formula/source/core/api/FormulaCompiler.cxx
@@ -692,19 +692,8 @@ FormulaCompiler::OpCodeMapPtr FormulaCompiler::GetOpCodeMap( const sal_Int32 nLa
case FormulaLanguage::ODF_11 :
if (!mxSymbolsPODF)
InitSymbolsPODF();
- /* FIXME: only temporarily init mxSymbolsAPI here */
- if (!mxSymbolsAPI)
- InitSymbolsAPI();
xMap = mxSymbolsPODF;
break;
-/* FIXME: add FormulaLanguage::API constant */
-#if 0
- case FormulaLanguage::API :
- if (!mxSymbolsAPI)
- InitSymbolsAPI();
- xMap = mxSymbolsAPI;
- break;
-#endif
case FormulaLanguage::ENGLISH :
if (!mxSymbolsEnglish)
InitSymbolsEnglish();
@@ -725,6 +714,11 @@ FormulaCompiler::OpCodeMapPtr FormulaCompiler::GetOpCodeMap( const sal_Int32 nLa
InitSymbolsOOXML();
xMap = mxSymbolsOOXML;
break;
+ case FormulaLanguage::API :
+ if (!mxSymbolsAPI)
+ InitSymbolsAPI();
+ xMap = mxSymbolsAPI;
+ break;
default:
; // nothing, NULL map returned
}