From 82b6427174692248f73f1b99f19faf46a13d3e4f Mon Sep 17 00:00:00 2001 From: Kohei Yoshida Date: Tue, 22 Oct 2013 22:16:20 -0400 Subject: Use enum for table op mode. Change-Id: I51e110fb0a2b72689f529d7094389cc3e20dfbe0 --- sc/source/ui/undo/undoblk3.cxx | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'sc/source/ui/undo') diff --git a/sc/source/ui/undo/undoblk3.cxx b/sc/source/ui/undo/undoblk3.cxx index 2037eb7bb1ec..c3953c69afb8 100644 --- a/sc/source/ui/undo/undoblk3.cxx +++ b/sc/source/ui/undo/undoblk3.cxx @@ -1086,7 +1086,7 @@ ScUndoTabOp::ScUndoTabOp( ScDocShell* pNewDocShell, const ScRefAddress& rFormulaEnd, const ScRefAddress& rRowCell, const ScRefAddress& rColCell, - sal_uInt8 nMd ) + ScTabOpParam::Mode eMode ) : ScSimpleUndo( pNewDocShell ), aRange ( nStartX, nStartY, nStartZ, nEndX, nEndY, nEndZ ), pUndoDoc ( pNewUndoDoc ), @@ -1094,7 +1094,7 @@ ScUndoTabOp::ScUndoTabOp( ScDocShell* pNewDocShell, theFormulaEnd ( rFormulaEnd ), theRowCell ( rRowCell ), theColCell ( rColCell ), - nMode ( nMd ) + meMode(eMode) { } @@ -1135,9 +1135,7 @@ void ScUndoTabOp::Redo() ScUndoUtil::MarkSimpleBlock( pDocShell, aRange ); - ScTabOpParam aParam( theFormulaCell, theFormulaEnd, - theRowCell, theColCell, - nMode ); + ScTabOpParam aParam(theFormulaCell, theFormulaEnd, theRowCell, theColCell, meMode); ScTabViewShell* pViewShell = ScTabViewShell::GetActiveViewShell(); if (pViewShell) -- cgit