diff options
Diffstat (limited to 'sc')
-rw-r--r-- | sc/source/ui/unoobj/cellsuno.cxx | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/sc/source/ui/unoobj/cellsuno.cxx b/sc/source/ui/unoobj/cellsuno.cxx index cbd100f308f3..bcab454b54ca 100644 --- a/sc/source/ui/unoobj/cellsuno.cxx +++ b/sc/source/ui/unoobj/cellsuno.cxx @@ -4128,9 +4128,9 @@ sal_Int32 SAL_CALL ScCellRangesBase::replaceAll( const uno::Reference<util::XSea for (; itr != itrEnd && *itr < nTabCount; ++itr) if ( *itr != nTab && bUndo) pUndoDoc->AddUndoTab( *itr, *itr ); - ScMarkData* pUndoMark = NULL; + boost::scoped_ptr<ScMarkData> pUndoMark; if (bUndo) - pUndoMark = new ScMarkData(aMark); + pUndoMark.reset(new ScMarkData(aMark)); bool bFound = false; if (bUndo) @@ -4153,7 +4153,6 @@ sal_Int32 SAL_CALL ScCellRangesBase::replaceAll( const uno::Reference<util::XSea else { delete pUndoDoc; - delete pUndoMark; // nReplaced bleibt 0 } } |