summaryrefslogtreecommitdiff
path: root/sw/source/uibase/utlui/tmplctrl.cxx
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2023-02-16 10:42:06 +0000
committerCaolán McNamara <caolanm@redhat.com>2023-02-16 15:13:21 +0000
commit0908c7c1184ab7acb7b6f6740a82c2f12c296fae (patch)
tree7bfe09dce871f6f2bc59a81b689d7ab5a3a6f3ea /sw/source/uibase/utlui/tmplctrl.cxx
parente71080e19365aa074c56d1136dad2b09783949a2 (diff)
SfxViewShell::GetViewFrame never returns null, change to a reference
various null checks can be seen to be redundant and removed Change-Id: Icf49c1de4b0302795d2769a370af3abceaad0221 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/147147 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sw/source/uibase/utlui/tmplctrl.cxx')
-rw-r--r--sw/source/uibase/utlui/tmplctrl.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/uibase/utlui/tmplctrl.cxx b/sw/source/uibase/utlui/tmplctrl.cxx
index bccb4cb58ab2..b1d5d373f65f 100644
--- a/sw/source/uibase/utlui/tmplctrl.cxx
+++ b/sw/source/uibase/utlui/tmplctrl.cxx
@@ -108,7 +108,7 @@ void SwTemplateControl::Command( const CommandEvent& rCEvt )
// looks a bit awkward, but another way is not possible
pStyle = xIter->operator[]( nCurrId - 1 );
SfxStringItem aStyle( FN_SET_PAGE_STYLE, pStyle->GetName() );
- pWrtShell->GetView().GetViewFrame()->GetDispatcher()->ExecuteList(
+ pWrtShell->GetView().GetViewFrame().GetDispatcher()->ExecuteList(
FN_SET_PAGE_STYLE,
SfxCallMode::SLOT|SfxCallMode::RECORD,
{ &aStyle });