summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@collabora.co.uk>2016-07-28 10:34:38 +0200
committerMiklos Vajna <vmiklos@collabora.co.uk>2016-07-29 10:09:46 +0200
commit0ab64f84571fa3c1aa31e886ef4792e3584a852f (patch)
treec0398fb9dfad58a28c62a361d70be07c0c225c29 /sw
parentd42992ac86e1feb5412ab7c496a8f717d5dd8225 (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> (cherry picked from commit 9e903fc1d477e2f65653b36364de0c46a5151955)
Diffstat (limited to 'sw')
-rw-r--r--sw/source/uibase/shells/basesh.cxx16
1 files changed, 8 insertions, 8 deletions
diff --git a/sw/source/uibase/shells/basesh.cxx b/sw/source/uibase/shells/basesh.cxx
index 4ffe11703bf0..bc1721995d78 100644
--- a/sw/source/uibase/shells/basesh.cxx
+++ b/sw/source/uibase/shells/basesh.cxx
@@ -474,7 +474,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();
@@ -488,19 +488,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");