summaryrefslogtreecommitdiff
path: root/starmath
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2023-02-15 19:52:01 +0000
committerCaolán McNamara <caolanm@redhat.com>2023-02-16 09:24:57 +0000
commitdc214bcff335024f21c208e239cc36232d611145 (patch)
tree3bc0fe3cdb032a0f195469da70a75ddb444704a8 /starmath
parent2f0b16a6a9bfff1646b14412e5918b6d483b9cdc (diff)
SfxViewShell never takes a null SfxViewFrame*
Change-Id: I36f3a5c77a7fb2d3cf267184e403e6cd24dbd70b Reviewed-on: https://gerrit.libreoffice.org/c/core/+/147112 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'starmath')
-rw-r--r--starmath/inc/view.hxx2
-rw-r--r--starmath/source/view.cxx6
2 files changed, 4 insertions, 4 deletions
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<SmGraphicWindow>::Create(*this))
- , maGraphicController(mxGraphicWindow->GetGraphicWidget(), SID_GRAPHIC_SM, pFrame_->GetBindings())
+ , maGraphicController(mxGraphicWindow->GetGraphicWidget(), SID_GRAPHIC_SM, rFrame_.GetBindings())
, mbPasteState(false)
, mbInsertIntoEditWindow(false)
{