summaryrefslogtreecommitdiffstats
path: root/sc/source/ui/undo
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-08-07 17:16:26 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-08-08 08:08:35 +0200
commita209172669e7a2de6065486e385e4e3007b74bd2 (patch)
tree4a7e008cf700fb23ecc6e4cd44de1c6a08a9b7e7 /sc/source/ui/undo
parentloplugin:singlevalfields (diff)
downloadcore-a209172669e7a2de6065486e385e4e3007b74bd2.tar.gz
core-a209172669e7a2de6065486e385e4e3007b74bd2.zip
loplugin:constantparam
Change-Id: Ib92aba17c46a4ada75c2a0630f281759d995f32e Reviewed-on: https://gerrit.libreoffice.org/40843 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sc/source/ui/undo')
-rw-r--r--sc/source/ui/undo/undodat.cxx16
1 files changed, 1 insertions, 15 deletions
diff --git a/sc/source/ui/undo/undodat.cxx b/sc/source/ui/undo/undodat.cxx
index 965fcf6f912e..759d49a0b390 100644
--- a/sc/source/ui/undo/undodat.cxx
+++ b/sc/source/ui/undo/undodat.cxx
@@ -1719,13 +1719,11 @@ ScUndoDataForm::ScUndoDataForm( ScDocShell* pNewDocShell,
SCCOL nEndX, SCROW nEndY, SCTAB nEndZ,
const ScMarkData& rMark,
ScDocument* pNewUndoDoc, ScDocument* pNewRedoDoc,
- InsertDeleteFlags nNewFlags,
ScRefUndoData* pRefData )
: ScBlockUndo(pNewDocShell, ScRange( nStartX, nStartY, nStartZ, nEndX, nEndY, nEndZ ), SC_UNDO_SIMPLE)
, mxMarkData(new ScMarkData(rMark))
, xUndoDoc(pNewUndoDoc)
, xRedoDoc(pNewRedoDoc)
- , nFlags(nNewFlags)
, xRefUndoData(pRefData)
, bRedoFilled(false)
{
@@ -1749,12 +1747,7 @@ OUString ScUndoDataForm::GetComment() const
void ScUndoDataForm::SetChangeTrack()
{
- ScChangeTrack* pChangeTrack = pDocShell->GetDocument().GetChangeTrack();
- if ( pChangeTrack && (nFlags & InsertDeleteFlags::CONTENTS) )
- pChangeTrack->AppendContentRange(aBlockRange, xUndoDoc.get(),
- nStartChangeAction, nEndChangeAction, SC_CACM_PASTE);
- else
- nStartChangeAction = nEndChangeAction = 0;
+ nStartChangeAction = nEndChangeAction = 0;
}
void ScUndoDataForm::Undo()
@@ -1798,13 +1791,6 @@ void ScUndoDataForm::DoChange( const bool bUndo )
ScRefUndoData* pWorkRefData = bUndo ? xRefUndoData.get() : xRefRedoData.get();
- // Always back-up either all or none of the content for Undo
- InsertDeleteFlags nUndoFlags = InsertDeleteFlags::NONE;
- if (nFlags & InsertDeleteFlags::CONTENTS)
- nUndoFlags |= InsertDeleteFlags::CONTENTS;
- if (nFlags & InsertDeleteFlags::ATTRIB)
- nUndoFlags |= InsertDeleteFlags::ATTRIB;
-
bool bPaintAll = false;
ScTabViewShell* pViewShell = ScTabViewShell::GetActiveViewShell();