diff options
author | Miklos Vajna <vmiklos@collabora.co.uk> | 2016-07-28 10:34:38 +0200 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.co.uk> | 2016-07-28 10:41:25 +0000 |
commit | 9e903fc1d477e2f65653b36364de0c46a5151955 (patch) | |
tree | 78d186ab3d22f344d6c9d686e0b91f7f119e3ea8 /sw/source | |
parent | bc3de19411e0966bbcdc9e247b2af96bff4333b2 (diff) |
sw: rename generic rSh in SwBaseShell::ExecUndo()
So that it's a bit more obvious it's not a base shell nor a view shell.
Change-Id: I723a6394c59f4013576e3c4e2ff3016369d2227c
Reviewed-on: https://gerrit.libreoffice.org/27616
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
Tested-by: Jenkins <ci@libreoffice.org>
Diffstat (limited to 'sw/source')
-rw-r--r-- | sw/source/uibase/shells/basesh.cxx | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/sw/source/uibase/shells/basesh.cxx b/sw/source/uibase/shells/basesh.cxx index 041b8eaa4e43..4d29c40d8e6e 100644 --- a/sw/source/uibase/shells/basesh.cxx +++ b/sw/source/uibase/shells/basesh.cxx @@ -475,7 +475,7 @@ void SwBaseShell::StateClpbrd(SfxItemSet &rSet) void SwBaseShell::ExecUndo(SfxRequest &rReq) { - SwWrtShell &rSh = GetShell(); + SwWrtShell &rWrtShell = GetShell(); sal_uInt16 nId = rReq.GetSlot(), nCnt = 1; const SfxItemSet* pArgs = rReq.GetArgs(); @@ -489,19 +489,19 @@ void SwBaseShell::ExecUndo(SfxRequest &rReq) switch( nId ) { case SID_UNDO: - rSh.LockPaint(); - rSh.Do( SwWrtShell::UNDO, nCnt ); - rSh.UnlockPaint(); + rWrtShell.LockPaint(); + rWrtShell.Do( SwWrtShell::UNDO, nCnt ); + rWrtShell.UnlockPaint(); break; case SID_REDO: - rSh.LockPaint(); - rSh.Do( SwWrtShell::REDO, nCnt ); - rSh.UnlockPaint(); + rWrtShell.LockPaint(); + rWrtShell.Do( SwWrtShell::REDO, nCnt ); + rWrtShell.UnlockPaint(); break; case SID_REPEAT: - rSh.Do( SwWrtShell::REPEAT ); + rWrtShell.Do( SwWrtShell::REPEAT ); break; default: OSL_FAIL("wrong Dispatcher"); |