summaryrefslogtreecommitdiff
path: root/sc/source/core/data/table2.cxx
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2013-06-25 17:29:24 +0100
committerCaolán McNamara <caolanm@redhat.com>2013-06-26 12:02:01 +0100
commit4d676f72bc0f1928be0e6bc2f272291f278dc95a (patch)
tree9a4d4c1befbda6e061ad9a63bf655c6b2090dc5e /sc/source/core/data/table2.cxx
parentfcae9bf3b14ef294c54751705d2532c6447b095a (diff)
coverity#1038508 Use after free (USE_AFTER_FREE)
** CID 1038508: Use after free (USE_AFTER_FREE) ** CID 1038509: Use after free (USE_AFTER_FREE) ** CID 1038510: Use after free (USE_AFTER_FREE) Change-Id: I3a1422e252af415536d9303e58ff85763c231921
Diffstat (limited to 'sc/source/core/data/table2.cxx')
-rw-r--r--sc/source/core/data/table2.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/sc/source/core/data/table2.cxx b/sc/source/core/data/table2.cxx
index 3d7b746894e8..cec467913326 100644
--- a/sc/source/core/data/table2.cxx
+++ b/sc/source/core/data/table2.cxx
@@ -1438,15 +1438,15 @@ void ScTable::SetFormula(
aCol[nCol].SetFormula(nRow, rFormula, eGram);
}
-void ScTable::SetFormulaCell( SCCOL nCol, SCROW nRow, ScFormulaCell* pCell )
+ScFormulaCell* ScTable::SetFormulaCell( SCCOL nCol, SCROW nRow, ScFormulaCell* pCell )
{
if (!ValidColRow(nCol, nRow))
{
delete pCell;
- return;
+ return NULL;
}
- aCol[nCol].SetFormulaCell(nRow, pCell);
+ return aCol[nCol].SetFormulaCell(nRow, pCell);
}
void ScTable::SetValue( SCCOL nCol, SCROW nRow, const double& rVal )