summaryrefslogtreecommitdiff
path: root/sc/source/core/tool/docoptio.cxx
diff options
context:
space:
mode:
authorRené Kjellerup <rk.katana.steel@gmail.com>2010-11-03 12:33:38 -0400
committerKohei Yoshida <kyoshida@novell.com>2010-11-03 12:34:09 -0400
commit892231d6dc012788f4776e4925fa3e22d5f4ae83 (patch)
tree4f2bcbfe7cb73329127c02d2103f9fe03f121a7c /sc/source/core/tool/docoptio.cxx
parent549fb00d597cc71dc7ecdc55e6197a62192691ce (diff)
Warning free sc module
Diffstat (limited to 'sc/source/core/tool/docoptio.cxx')
-rw-r--r--sc/source/core/tool/docoptio.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/sc/source/core/tool/docoptio.cxx b/sc/source/core/tool/docoptio.cxx
index e905cbe7f24d..4933681ab2f3 100644
--- a/sc/source/core/tool/docoptio.cxx
+++ b/sc/source/core/tool/docoptio.cxx
@@ -385,7 +385,7 @@ ScDocCfg::ScDocCfg() :
aValues = aCalcItem.GetProperties(aNames);
aCalcItem.EnableNotification(aNames);
pValues = aValues.getConstArray();
- DBG_ASSERT(aValues.getLength() == aNames.getLength(), "GetProperties failed");
+ OSL_ENSURE(aValues.getLength() == aNames.getLength(), "GetProperties failed");
if(aValues.getLength() == aNames.getLength())
{
for(int nProp = 0; nProp < aNames.getLength(); nProp++)
@@ -631,6 +631,7 @@ IMPL_LINK( ScDocCfg, FormulaCommitHdl, void *, EMPTYARG )
{
case ::formula::FormulaGrammar::GRAM_NATIVE_XL_A1: nVal = 1; break;
case ::formula::FormulaGrammar::GRAM_NATIVE_XL_R1C1: nVal = 2; break;
+ default: break;
}
pValues[nProp] <<= nVal;
}