summaryrefslogtreecommitdiff
path: root/sw/source/uibase/docvw/edtwin.cxx
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/docvw/edtwin.cxx
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/docvw/edtwin.cxx')
-rw-r--r--sw/source/uibase/docvw/edtwin.cxx10
1 files changed, 5 insertions, 5 deletions
diff --git a/sw/source/uibase/docvw/edtwin.cxx b/sw/source/uibase/docvw/edtwin.cxx
index ca797f516b6a..132930631cf5 100644
--- a/sw/source/uibase/docvw/edtwin.cxx
+++ b/sw/source/uibase/docvw/edtwin.cxx
@@ -375,7 +375,7 @@ void SwEditWin::UpdatePointer(const Point &rLPt, sal_uInt16 nModifier )
if( !rSh.VisArea().Width() )
return;
- SET_CURR_SHELL(&rSh);
+ CurrShell aCurr(&rSh);
if ( IsChainMode() )
{
@@ -2900,7 +2900,7 @@ void SwEditWin::MouseButtonDown(const MouseEvent& _rMEvt)
if( rSh.FinishOLEObj() )
return; // end InPlace and the click doesn't count anymore
- SET_CURR_SHELL( &rSh );
+ CurrShell aCurr( &rSh );
SdrView *pSdrView = rSh.GetDrawView();
if ( pSdrView )
@@ -3818,7 +3818,7 @@ void SwEditWin::MouseMove(const MouseEvent& _rMEvt)
bool bIsDocReadOnly = m_rView.GetDocShell()->IsReadOnly();
- SET_CURR_SHELL( &rSh );
+ CurrShell aCurr( &rSh );
//aPixPt == Point in Pixel, relative to ChildWin
//aDocPt == Point in Twips, document coordinates
@@ -4282,7 +4282,7 @@ void SwEditWin::MouseButtonUp(const MouseEvent& rMEvt)
m_rView.SetNumRuleNodeFromDoc(nullptr);
SwWrtShell &rSh = m_rView.GetWrtShell();
- SET_CURR_SHELL( &rSh );
+ CurrShell aCurr( &rSh );
SdrView *pSdrView = rSh.GetDrawView();
if ( pSdrView )
{
@@ -5220,7 +5220,7 @@ void SwEditWin::Command( const CommandEvent& rCEvt )
if((!pChildWin || pChildWin->GetView() != &m_rView) &&
!rSh.IsDrawCreate() && !IsDrawAction())
{
- SET_CURR_SHELL( &rSh );
+ CurrShell aCurr( &rSh );
if (!m_pApplyTempl)
{
if (g_bNoInterrupt)