workaround broken WaE eGrammar may be used uninitialized

This commit is contained in:
Markus Mohrhard
2012-12-02 08:23:37 +01:00
parent 704fdf2b23
commit e93dd02e30

View File

@@ -89,7 +89,7 @@ void ScOrcusSheet::set_formula(
row_t row, col_t col, formula_grammar_t grammar, const char* p, size_t n)
{
OUString aFormula(p, n, RTL_TEXTENCODING_UTF8);
formula::FormulaGrammar::Grammar eGrammar;
formula::FormulaGrammar::Grammar eGrammar = formula::FormulaGrammar::GRAM_ODFF;
switch(grammar)
{
case orcus::spreadsheet::ods: