summaryrefslogtreecommitdiff
path: root/sw/source/uibase/wrtsh
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@collabora.com>2020-06-15 17:02:05 +0200
committerMiklos Vajna <vmiklos@collabora.com>2020-06-16 09:03:16 +0200
commit18ab61cd404518c1fde1464429f08cc8d12d6f85 (patch)
tree5fb170c06e009e3be447b0c786588fa0cc7d3b27 /sw/source/uibase/wrtsh
parent35bb0594b2d977312ef06fc5262cc7592bc13d0f (diff)
sw: remove useless SET_CURR_SHELL macro
Perhaps it did something useful in the past, but it's better to expand it in its current form. Change-Id: I404e8d274f15a178f519d42a1ecd993c1e530f91 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/96384 Tested-by: Jenkins Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Diffstat (limited to 'sw/source/uibase/wrtsh')
-rw-r--r--sw/source/uibase/wrtsh/wrtsh1.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/sw/source/uibase/wrtsh/wrtsh1.cxx b/sw/source/uibase/wrtsh/wrtsh1.cxx
index 7eb8e17f95bb..a0fb6e1d12f4 100644
--- a/sw/source/uibase/wrtsh/wrtsh1.cxx
+++ b/sw/source/uibase/wrtsh/wrtsh1.cxx
@@ -1665,7 +1665,7 @@ SwWrtShell::SwWrtShell( SwWrtShell& rSh, vcl::Window *_pWin, SwView &rShell )
, m_aNavigationMgr(*this)
{
BITFLD_INI_LIST
- SET_CURR_SHELL( this );
+ CurrShell aCurr( this );
SetSfxViewShell( static_cast<SfxViewShell *>(&rShell) );
SetFlyMacroLnk( LINK(this, SwWrtShell, ExecFlyMac) );
@@ -1684,7 +1684,7 @@ SwWrtShell::SwWrtShell( SwDoc& rDoc, vcl::Window *_pWin, SwView &rShell,
, m_aNavigationMgr(*this)
{
BITFLD_INI_LIST
- SET_CURR_SHELL( this );
+ CurrShell aCurr( this );
SetSfxViewShell( static_cast<SfxViewShell *>(&rShell) );
SetFlyMacroLnk( LINK(this, SwWrtShell, ExecFlyMac) );
@@ -1697,7 +1697,7 @@ SwWrtShell::SwWrtShell( SwDoc& rDoc, vcl::Window *_pWin, SwView &rShell,
SwWrtShell::~SwWrtShell()
{
- SET_CURR_SHELL( this );
+ CurrShell aCurr( this );
while(IsModePushed())
PopMode();
while(PopCursor(false))