[Libreoffice-commits] core.git: Branch 'feature/calc-group-interpreter' - sc/source

Noel Power noel.power at suse.com
Tue Aug 13 04:50:36 PDT 2013


 sc/source/core/tool/formulaopt.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 17c6687eb0c29cba8b0ef981eb6201e794ba3d57
Author: Noel Power <noel.power at suse.com>
Date:   Mon Aug 12 17:44:26 2013 +0100

    doh unitialised variable
    
    Change-Id: Ief70ed0e8f06715b1909e769b031db0dcaf0095d
    (cherry picked from commit b59d116bf7a056f9683010c5e612190278595772)

diff --git a/sc/source/core/tool/formulaopt.cxx b/sc/source/core/tool/formulaopt.cxx
index e6966e1..287028d 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