summaryrefslogtreecommitdiff
path: root/svl
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2016-03-07 08:09:35 +0200
committerNoel Grandin <noelgrandin@gmail.com>2016-03-07 09:16:00 +0000
commit359e0b47a0f96ffa595a0c38a5e5318d797812fe (patch)
tree3695eb961668945dda469fc659337cbdd8c89520 /svl
parentcc84aaf70ac56092b32d1d329143eca0550dce12 (diff)
loplugin:unuseddefaultparams
Change-Id: Ia414f7845425ef73859ed04853378e96cc738795 Reviewed-on: https://gerrit.libreoffice.org/22971 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'svl')
-rw-r--r--svl/source/undo/undo.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/svl/source/undo/undo.cxx b/svl/source/undo/undo.cxx
index 164c6534ca4e..42e96af70527 100644
--- a/svl/source/undo/undo.cxx
+++ b/svl/source/undo/undo.cxx
@@ -849,16 +849,16 @@ size_t SfxUndoManager::ImplGetRedoActionCount_Lock( bool const i_currentLevel )
}
-SfxUndoAction* SfxUndoManager::GetRedoAction( size_t nNo ) const
+SfxUndoAction* SfxUndoManager::GetRedoAction() const
{
UndoManagerGuard aGuard( *m_xData );
const SfxUndoArray* pUndoArray = m_xData->pActUndoArray;
- if ( (pUndoArray->nCurUndoAction + nNo) > pUndoArray->aUndoActions.size() )
+ if ( (pUndoArray->nCurUndoAction) > pUndoArray->aUndoActions.size() )
{
return nullptr;
}
- return pUndoArray->aUndoActions[ pUndoArray->nCurUndoAction + nNo ].pAction;
+ return pUndoArray->aUndoActions[ pUndoArray->nCurUndoAction ].pAction;
}