From a209172669e7a2de6065486e385e4e3007b74bd2 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Mon, 7 Aug 2017 17:16:26 +0200 Subject: loplugin:constantparam Change-Id: Ib92aba17c46a4ada75c2a0630f281759d995f32e Reviewed-on: https://gerrit.libreoffice.org/40843 Tested-by: Jenkins Reviewed-by: Noel Grandin --- sc/source/ui/undo/undodat.cxx | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-) (limited to 'sc/source/ui/undo') 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(); -- cgit