From dc214bcff335024f21c208e239cc36232d611145 Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Wed, 15 Feb 2023 19:52:01 +0000 Subject: SfxViewShell never takes a null SfxViewFrame* MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: I36f3a5c77a7fb2d3cf267184e403e6cd24dbd70b Reviewed-on: https://gerrit.libreoffice.org/c/core/+/147112 Tested-by: Jenkins Reviewed-by: Caolán McNamara --- starmath/inc/view.hxx | 2 +- starmath/source/view.cxx | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'starmath') diff --git a/starmath/inc/view.hxx b/starmath/inc/view.hxx index 41e28a44c3df..662923af0528 100644 --- a/starmath/inc/view.hxx +++ b/starmath/inc/view.hxx @@ -291,7 +291,7 @@ class SmViewShell final : public SfxViewShell public: - SmViewShell(SfxViewFrame *pFrame, SfxViewShell *pOldSh); + SmViewShell(SfxViewFrame& rFrame, SfxViewShell *pOldSh); virtual ~SmViewShell() override; SmDocShell * GetDoc() const diff --git a/starmath/source/view.cxx b/starmath/source/view.cxx index 1b51c8b71a6e..055805c8cc20 100644 --- a/starmath/source/view.cxx +++ b/starmath/source/view.cxx @@ -2193,10 +2193,10 @@ private: }; } -SmViewShell::SmViewShell(SfxViewFrame *pFrame_, SfxViewShell *) - : SfxViewShell(pFrame_, SfxViewShellFlags::HAS_PRINTOPTIONS) +SmViewShell::SmViewShell(SfxViewFrame& rFrame_, SfxViewShell *) + : SfxViewShell(rFrame_, SfxViewShellFlags::HAS_PRINTOPTIONS) , mxGraphicWindow(VclPtr::Create(*this)) - , maGraphicController(mxGraphicWindow->GetGraphicWidget(), SID_GRAPHIC_SM, pFrame_->GetBindings()) + , maGraphicController(mxGraphicWindow->GetGraphicWidget(), SID_GRAPHIC_SM, rFrame_.GetBindings()) , mbPasteState(false) , mbInsertIntoEditWindow(false) { -- cgit