diff options
author | Miklos Vajna <vmiklos@collabora.com> | 2020-06-15 17:02:05 +0200 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.com> | 2020-06-16 09:03:16 +0200 |
commit | 18ab61cd404518c1fde1464429f08cc8d12d6f85 (patch) | |
tree | 5fb170c06e009e3be447b0c786588fa0cc7d3b27 /sw/source/uibase/app | |
parent | 35bb0594b2d977312ef06fc5262cc7592bc13d0f (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/app')
-rw-r--r-- | sw/source/uibase/app/appenv.cxx | 2 | ||||
-rw-r--r-- | sw/source/uibase/app/applab.cxx | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/sw/source/uibase/app/appenv.cxx b/sw/source/uibase/app/appenv.cxx index fc9b46af4a79..31123923b991 100644 --- a/sw/source/uibase/app/appenv.cxx +++ b/sw/source/uibase/app/appenv.cxx @@ -308,7 +308,7 @@ void SwModule::InsertEnv( SfxRequest& rReq ) } } - SET_CURR_SHELL(pSh); + CurrShell aCurr(pSh); pSh->SetNewDoc(); // Avoid performance problems // Remember Flys of this site diff --git a/sw/source/uibase/app/applab.cxx b/sw/source/uibase/app/applab.cxx index c562f3450f1d..77534197e1e6 100644 --- a/sw/source/uibase/app/applab.cxx +++ b/sw/source/uibase/app/applab.cxx @@ -210,7 +210,7 @@ void SwModule::InsertLab(SfxRequest& rReq, bool bLabel) SwWait aWait( static_cast<SwDocShell&>(*xDocSh), true ); - SET_CURR_SHELL(pSh); + CurrShell aCurr(pSh); pSh->SetLabelDoc(rItem.m_bSynchron); pSh->DoUndo( false ); pSh->StartAllAction(); |