diff options
author | Caolán McNamara <cmc@openoffice.org> | 2009-11-06 11:03:40 +0000 |
---|---|---|
committer | Caolán McNamara <cmc@openoffice.org> | 2009-11-06 11:03:40 +0000 |
commit | 2f006bf20ad7dbd59ab0ac846f06e018c2c1c4fb (patch) | |
tree | fea78f8c482c4f8c1eba71c30fe17226c2aa4f1a /sc/source | |
parent | a02a44429145de0a67f3b75656f10b146490feec (diff) |
cmcfixes66: #i106674# fix remaining new[]/delete mismatches
Diffstat (limited to 'sc/source')
-rw-r--r-- | sc/source/core/data/column.cxx | 4 | ||||
-rw-r--r-- | sc/source/ui/dbgui/tpsubt.cxx | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/sc/source/core/data/column.cxx b/sc/source/core/data/column.cxx index 0afc4fb1347c..afcd809eed1d 100644 --- a/sc/source/core/data/column.cxx +++ b/sc/source/core/data/column.cxx @@ -1233,8 +1233,8 @@ void ScColumn::InsertRow( SCROW nStartRow, SCSIZE nSize ) } } - delete pDelRows; - delete ppDelCells; + delete [] pDelRows; + delete [] ppDelCells; } pDocument->SetAutoCalc( bOldAutoCalc ); diff --git a/sc/source/ui/dbgui/tpsubt.cxx b/sc/source/ui/dbgui/tpsubt.cxx index 337329acfec6..8bbc561c9e43 100644 --- a/sc/source/ui/dbgui/tpsubt.cxx +++ b/sc/source/ui/dbgui/tpsubt.cxx @@ -276,8 +276,8 @@ BOOL ScTpSubTotalGroup::DoFillItemSet( USHORT nGroupNo, rArgSet.Put( ScSubTotalItem( SCITEM_SUBTDATA, &theSubTotalData ) ); - if ( pSubTotals ) delete pSubTotals; - if ( pFunctions ) delete pFunctions; + if ( pSubTotals ) delete [] pSubTotals; + if ( pFunctions ) delete [] pFunctions; return TRUE; } |