[Libreoffice-commits] core.git: sc/source
Noel Power
noel.power at suse.com
Mon Aug 12 09:45:38 PDT 2013
sc/source/core/tool/formulaopt.cxx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit b59d116bf7a056f9683010c5e612190278595772
Author: Noel Power <noel.power at suse.com>
Date: Mon Aug 12 17:44:26 2013 +0100
doh unitialised variable
Change-Id: Ief70ed0e8f06715b1909e769b031db0dcaf0095d
diff --git a/sc/source/core/tool/formulaopt.cxx b/sc/source/core/tool/formulaopt.cxx
index e56478c..20ef831 100644
--- a/sc/source/core/tool/formulaopt.cxx
+++ b/sc/source/core/tool/formulaopt.cxx
@@ -236,7 +236,7 @@ ScFormulaCfg::PropsToIds ScFormulaCfg::GetPropNamesToId()
static sal_uInt16 aVals[] = { SCFORMULAOPT_GRAMMAR, SCFORMULAOPT_ENGLISH_FUNCNAME, SCFORMULAOPT_SEP_ARG, SCFORMULAOPT_SEP_ARRAY_ROW, SCFORMULAOPT_SEP_ARRAY_COL, SCFORMULAOPT_STRING_REF_SYNTAX, SCFORMULAOPT_EMPTY_STRING_AS_ZERO, SCFORMULAOPT_OOXML_RECALC, SCFORMULAOPT_ODF_RECALC, SCFORMULAOPT_OPENCL_ENABLED };
OSL_ENSURE( SAL_N_ELEMENTS(aVals) == aPropNames.getLength(), "Properties and ids are out of Sync");
PropsToIds aPropIdMap;
- for ( sal_uInt16 i; i<aPropNames.getLength(); ++i )
+ for ( sal_uInt16 i=0; i<aPropNames.getLength(); ++i )
aPropIdMap[aPropNames[i]] = aVals[ i ];
return aPropIdMap;
}
More information about the Libreoffice-commits
mailing list