Fix typo in code

Change-Id: Ic416b58498274cbd49cbb0a5fea934bfbe356722
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/167901
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
Tested-by: Julien Nabet <serval2412@yahoo.fr>
This commit is contained in:
Andrea Gelmini 2024-05-21 15:08:42 +02:00 committed by Julien Nabet
parent 6f30afeb72
commit 5529ada78f

View file

@ -971,29 +971,29 @@ static bool lcl_fillNativeSymbols( FormulaCompiler::NonConstOpCodeMapPtr& xMap,
if (comphelper::LibreOfficeKit::isActive())
{
OUString langauge = comphelper::LibreOfficeKit::getLanguageTag().getLanguage();
OUString language = comphelper::LibreOfficeKit::getLanguageTag().getLanguage();
if (eWhat == FormulaCompiler::InitSymbols::ASK)
{
return aLocaleSymbolMap.contains(langauge)
&& bool(aLocaleSymbolMap[langauge].mxSymbolMap);
return aLocaleSymbolMap.contains(language)
&& bool(aLocaleSymbolMap[language].mxSymbolMap);
}
else if (eWhat == FormulaCompiler::InitSymbols::DESTROY)
{
aLocaleSymbolMap[langauge].mxSymbolMap.reset();
aLocaleSymbolMap[language].mxSymbolMap.reset();
}
else if (!aLocaleSymbolMap[langauge].mxSymbolMap)
else if (!aLocaleSymbolMap[language].mxSymbolMap)
{
// Core
aLocaleSymbolMap[langauge].mxSymbolMap = std::make_shared<FormulaCompiler::OpCodeMap>(
aLocaleSymbolMap[language].mxSymbolMap = std::make_shared<FormulaCompiler::OpCodeMap>(
SC_OPCODE_LAST_OPCODE_ID + 1, true, FormulaGrammar::GRAM_NATIVE_UI);
OpCodeList aOpCodeListSymbols(RID_STRLIST_FUNCTION_NAMES_SYMBOLS,
aLocaleSymbolMap[langauge].mxSymbolMap);
aLocaleSymbolMap[language].mxSymbolMap);
OpCodeList aOpCodeListNative(RID_STRLIST_FUNCTION_NAMES,
aLocaleSymbolMap[langauge].mxSymbolMap);
aLocaleSymbolMap[language].mxSymbolMap);
// No AddInMap for native core mapping.
}
xMap = aLocaleSymbolMap[langauge].mxSymbolMap;
xMap = aLocaleSymbolMap[language].mxSymbolMap;
}
else
{