From 0908c7c1184ab7acb7b6f6740a82c2f12c296fae Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Thu, 16 Feb 2023 10:42:06 +0000 Subject: SfxViewShell::GetViewFrame never returns null, change to a reference MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- sw/source/uibase/ribbar/dselect.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sw/source/uibase/ribbar/dselect.cxx') diff --git a/sw/source/uibase/ribbar/dselect.cxx b/sw/source/uibase/ribbar/dselect.cxx index 205cb81fa5f5..abbebc0445e5 100644 --- a/sw/source/uibase/ribbar/dselect.cxx +++ b/sw/source/uibase/ribbar/dselect.cxx @@ -38,7 +38,7 @@ void DrawSelection::Activate(const sal_uInt16 nSlotId) m_pWin->SetObjectSelect(true); SwDrawBase::Activate(nSlotId); - m_pSh->GetView().GetViewFrame()->GetBindings().Invalidate(SID_INSERT_DRAW); + m_pSh->GetView().GetViewFrame().GetBindings().Invalidate(SID_INSERT_DRAW); } /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ -- cgit