summaryrefslogtreecommitdiff
path: root/sc/source/ui/undo
diff options
context:
space:
mode:
authorKohei Yoshida <kohei.yoshida@gmail.com>2013-02-12 13:05:05 -0500
committerKohei Yoshida <kohei.yoshida@gmail.com>2013-02-12 13:06:31 -0500
commit55b39ff42e6fe7424a106f590531af6717bd6e1e (patch)
tree138fcdbe3cfb234983d7242c23dac7254364a24b /sc/source/ui/undo
parent226d9f55cb15f4bdecdd87870ea3dd97db6ef528 (diff)
Remove excessive inclusion of cell.hxx from other headers.
In favor of forward delaration and/or inclusion of more specialized headers. Change-Id: I75f727cc50228b8958b60173ce14e5ce1fb7e6f7
Diffstat (limited to 'sc/source/ui/undo')
-rw-r--r--sc/source/ui/undo/undoblk3.cxx5
1 files changed, 3 insertions, 2 deletions
diff --git a/sc/source/ui/undo/undoblk3.cxx b/sc/source/ui/undo/undoblk3.cxx
index 969beb7da3b6..10392dd6d8ae 100644
--- a/sc/source/ui/undo/undoblk3.cxx
+++ b/sc/source/ui/undo/undoblk3.cxx
@@ -360,6 +360,7 @@ ScUndoSelectionAttr::ScUndoSelectionAttr( ScDocShell* pNewDocShell,
: ScSimpleUndo( pNewDocShell ),
aMarkData ( rMark ),
aRange ( nStartX, nStartY, nStartZ, nEndX, nEndY, nEndZ ),
+ mpDataArray(new ScEditDataArray),
pUndoDoc ( pNewUndoDoc ),
bMulti ( bNewMulti )
{
@@ -389,7 +390,7 @@ rtl::OUString ScUndoSelectionAttr::GetComment() const
ScEditDataArray* ScUndoSelectionAttr::GetDataArray()
{
- return &aDataArray;
+ return mpDataArray.get();
}
void ScUndoSelectionAttr::DoChange( const sal_Bool bUndo )
@@ -435,7 +436,7 @@ void ScUndoSelectionAttr::DoChange( const sal_Bool bUndo )
void ScUndoSelectionAttr::ChangeEditData( const bool bUndo )
{
ScDocument* pDoc = pDocShell->GetDocument();
- for (const ScEditDataArray::Item* pItem = aDataArray.First(); pItem; pItem = aDataArray.Next())
+ for (const ScEditDataArray::Item* pItem = mpDataArray->First(); pItem; pItem = mpDataArray->Next())
{
ScBaseCell* pCell;
pDoc->GetCell(pItem->GetCol(), pItem->GetRow(), pItem->GetTab(), pCell);