diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-12-01 15:27:21 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-12-04 07:25:00 +0100 |
commit | f6b437c57d4b0b032cb7e0838e16572bdf9a05cc (patch) | |
tree | 4cbcdf05171662f1e799c63f438ef7b3c4a0ddcb /sc | |
parent | 68f86457525c60f580954280d1a759aa174e8e96 (diff) |
loplugin:singlevalfields
Change-Id: I521d2efa641f3a14c48561e2e0f6d687e5807d93
Reviewed-on: https://gerrit.libreoffice.org/45662
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sc')
-rw-r--r-- | sc/source/ui/inc/undodat.hxx | 1 | ||||
-rw-r--r-- | sc/source/ui/undo/undodat.cxx | 4 |
2 files changed, 2 insertions, 3 deletions
diff --git a/sc/source/ui/inc/undodat.hxx b/sc/source/ui/inc/undodat.hxx index 3b19598eb701..cb9d88135319 100644 --- a/sc/source/ui/inc/undodat.hxx +++ b/sc/source/ui/inc/undodat.hxx @@ -445,7 +445,6 @@ private: std::unique_ptr<ScRefUndoData> xRefUndoData; std::unique_ptr<ScRefUndoData> xRefRedoData; sal_uLong nStartChangeAction; - sal_uLong nEndChangeAction; bool bRedoFilled; void DoChange( const bool bUndo ); diff --git a/sc/source/ui/undo/undodat.cxx b/sc/source/ui/undo/undodat.cxx index b1bb0bbc88f3..0fd7ee5f3b68 100644 --- a/sc/source/ui/undo/undodat.cxx +++ b/sc/source/ui/undo/undodat.cxx @@ -1757,7 +1757,7 @@ OUString ScUndoDataForm::GetComment() const void ScUndoDataForm::SetChangeTrack() { - nStartChangeAction = nEndChangeAction = 0; + nStartChangeAction = 0; } void ScUndoDataForm::Undo() @@ -1849,7 +1849,7 @@ void ScUndoDataForm::DoChange( const bool bUndo ) { ScChangeTrack* pChangeTrack = rDoc.GetChangeTrack(); if ( pChangeTrack ) - pChangeTrack->Undo( nStartChangeAction, nEndChangeAction ); + pChangeTrack->Undo( nStartChangeAction, 0 ); } else SetChangeTrack(); |