diff options
author | Noel Grandin <noel@peralex.com> | 2015-08-11 08:42:40 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2015-08-11 09:48:18 +0200 |
commit | 3553a5d3a899954c4db09e264d8faf07e817e564 (patch) | |
tree | 15f5d78ebe53ed498536c2d518a4cc2ad195c072 /svx/source/svdraw/sdrundomanager.cxx | |
parent | e624c13cf1732f42d2da212b1b96aa9de7dd66cf (diff) |
loplugin: defaultparams
Change-Id: I513643385dc0a04b68c5cf4a5f43aa0804e572e6
Diffstat (limited to 'svx/source/svdraw/sdrundomanager.cxx')
-rw-r--r-- | svx/source/svdraw/sdrundomanager.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/svx/source/svdraw/sdrundomanager.cxx b/svx/source/svdraw/sdrundomanager.cxx index adec049b539f..1487ddb89d94 100644 --- a/svx/source/svdraw/sdrundomanager.cxx +++ b/svx/source/svdraw/sdrundomanager.cxx @@ -40,7 +40,7 @@ bool SdrUndoManager::Undo() bool bRetval(false); // we are in text edit mode - if(GetUndoActionCount() && mpLastUndoActionBeforeTextEdit != GetUndoAction(0)) + if(GetUndoActionCount() && mpLastUndoActionBeforeTextEdit != GetUndoAction()) { // there is an undo action for text edit, trigger it bRetval = EditUndoManager::Undo(); @@ -85,7 +85,7 @@ void SdrUndoManager::Clear() { if(isTextEditActive()) { - while(GetUndoActionCount() && mpLastUndoActionBeforeTextEdit != GetUndoAction(0)) + while(GetUndoActionCount() && mpLastUndoActionBeforeTextEdit != GetUndoAction()) { RemoveLastUndoAction(); } @@ -107,14 +107,14 @@ void SdrUndoManager::SetEndTextEditHdl(const Link<>& rLink) if(isTextEditActive()) { // text edit start, remember last non-textedit action for later cleanup - mpLastUndoActionBeforeTextEdit = GetUndoActionCount() ? GetUndoAction(0) : 0; + mpLastUndoActionBeforeTextEdit = GetUndoActionCount() ? GetUndoAction() : 0; } else { // text edit ends, pop all textedit actions up to the remembered non-textedit action from the start // to set back the UndoManager to the state before text edit started. If that action is already gone // (due to being removed from the undo stack in the meantime), all need to be removed anyways - while(GetUndoActionCount() && mpLastUndoActionBeforeTextEdit != GetUndoAction(0)) + while(GetUndoActionCount() && mpLastUndoActionBeforeTextEdit != GetUndoAction()) { RemoveLastUndoAction(); } |