summaryrefslogtreecommitdiff
path: root/sw/source/uibase/dochdl/gloshdl.cxx
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2023-02-17 12:36:23 +0000
committerCaolán McNamara <caolanm@redhat.com>2023-02-17 15:43:07 +0000
commit5ed00392ee3b2ba7babeb88527ceaafc3da3f443 (patch)
tree0b3f5e00fe801b82da2de76ee6a12dab57603b6b /sw/source/uibase/dochdl/gloshdl.cxx
parent8bc365b8dd33feefd33fe4d64a80b9753401cba1 (diff)
use a reference here to flag its never null
Change-Id: Ic38d95d7c50d5807c9c94cc0851422bb1c60912a Reviewed-on: https://gerrit.libreoffice.org/c/core/+/147214 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sw/source/uibase/dochdl/gloshdl.cxx')
-rw-r--r--sw/source/uibase/dochdl/gloshdl.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/sw/source/uibase/dochdl/gloshdl.cxx b/sw/source/uibase/dochdl/gloshdl.cxx
index 4820584268aa..4d5a7707dbfc 100644
--- a/sw/source/uibase/dochdl/gloshdl.cxx
+++ b/sw/source/uibase/dochdl/gloshdl.cxx
@@ -69,7 +69,7 @@ struct TextBlockInfo_Impl
void SwGlossaryHdl::GlossaryDlg()
{
SwAbstractDialogFactory* pFact = SwAbstractDialogFactory::Create();
- ScopedVclPtr<AbstractGlossaryDlg> pDlg(pFact->CreateGlossaryDlg(m_pViewFrame, this, m_pWrtShell));
+ ScopedVclPtr<AbstractGlossaryDlg> pDlg(pFact->CreateGlossaryDlg(&m_rViewFrame, this, m_pWrtShell));
OUString sName;
OUString sShortName;
@@ -607,10 +607,10 @@ void SwGlossaryHdl::GetMacros( const OUString &rShortName,
}
// ctor, dtor
-SwGlossaryHdl::SwGlossaryHdl(SfxViewFrame* pVwFrame, SwWrtShell *pSh)
+SwGlossaryHdl::SwGlossaryHdl(SfxViewFrame& rVwFrame, SwWrtShell *pSh)
: m_rStatGlossaries( *::GetGlossaries() ),
m_aCurGrp( SwGlossaries::GetDefName() ),
- m_pViewFrame( pVwFrame ),
+ m_rViewFrame(rVwFrame),
m_pWrtShell( pSh )
{
}