diff options
author | Caolán McNamara <caolanm@redhat.com> | 2023-02-16 10:42:06 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2023-02-16 15:13:21 +0000 |
commit | 0908c7c1184ab7acb7b6f6740a82c2f12c296fae (patch) | |
tree | 7bfe09dce871f6f2bc59a81b689d7ab5a3a6f3ea /starmath/source/document.cxx | |
parent | e71080e19365aa074c56d1136dad2b09783949a2 (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 'starmath/source/document.cxx')
-rw-r--r-- | starmath/source/document.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/starmath/source/document.cxx b/starmath/source/document.cxx index 10143dae9afb..0e43fa1d6efb 100644 --- a/starmath/source/document.cxx +++ b/starmath/source/document.cxx @@ -152,7 +152,7 @@ void SmDocShell::SetText(const OUString& rBuffer) SmViewShell *pViewSh = SmGetActiveView(); if( pViewSh ) { - pViewSh->GetViewFrame()->GetBindings().Invalidate(SID_TEXT); + pViewSh->GetViewFrame().GetBindings().Invalidate(SID_TEXT); if ( SfxObjectCreateMode::EMBEDDED == GetCreateMode() ) { // have SwOleClient::FormatChanged() to align the modified formula properly |