diff options
author | Caolán McNamara <caolanm@redhat.com> | 2020-10-04 17:31:47 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2020-10-04 20:42:50 +0200 |
commit | ffbc494b2a139eabf062432f5b4fed3a4ce46382 (patch) | |
tree | c34bfd695c3e66dbef6156ad1068949b1562b9cd /sw/inc | |
parent | 6539ff3f4123a961a949c8d6a5fae8880c3d7081 (diff) |
SwXAutoStylesEnumerator always dereferences its SwDoc* arg
ditto:
SwNumFormat::UpdateNumNodes
SwEditShell::CopySelToDoc
Change-Id: I5f18b04e420facb703fcace20c645281d409cea6
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/103923
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sw/inc')
-rw-r--r-- | sw/inc/editsh.hxx | 2 | ||||
-rw-r--r-- | sw/inc/numrule.hxx | 2 | ||||
-rw-r--r-- | sw/inc/unostyle.hxx | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/sw/inc/editsh.hxx b/sw/inc/editsh.hxx index 66226bc40d5a..b5d0068bd86a 100644 --- a/sw/inc/editsh.hxx +++ b/sw/inc/editsh.hxx @@ -200,7 +200,7 @@ public: If table is copied into table, move all cursors away from it. Copy and Paste must be in FEShell because of FlyFrames! Copy all selections to the document. */ - bool CopySelToDoc( SwDoc* pInsDoc ); + bool CopySelToDoc( SwDoc& rInsDoc ); void SplitNode( bool bAutoFormat = false, bool bCheckTableStart = true ); bool AppendTextNode(); diff --git a/sw/inc/numrule.hxx b/sw/inc/numrule.hxx index 4da44bbd8ced..84f2bfba5426 100644 --- a/sw/inc/numrule.hxx +++ b/sw/inc/numrule.hxx @@ -52,7 +52,7 @@ class SW_DLLPUBLIC SwNumFormat final : public SvxNumberFormat, public SwClient std::unique_ptr<SwFormatVertOrient> m_pVertOrient; //For i120928,record the cp info of graphic within bullet sal_Unicode m_cGrfBulletCP; - SAL_DLLPRIVATE void UpdateNumNodes( SwDoc* pDoc ); + SAL_DLLPRIVATE void UpdateNumNodes(SwDoc& rDoc); using SvxNumberFormat::operator ==; using SvxNumberFormat::operator !=; diff --git a/sw/inc/unostyle.hxx b/sw/inc/unostyle.hxx index 2b29d2aa6729..0b40d1e73249 100644 --- a/sw/inc/unostyle.hxx +++ b/sw/inc/unostyle.hxx @@ -158,7 +158,7 @@ class SwXAutoStylesEnumerator final : public cppu::WeakImplHelper< css::containe { std::unique_ptr<SwAutoStylesEnumImpl> m_pImpl; public: - SwXAutoStylesEnumerator( SwDoc* pDoc, IStyleAccess::SwAutoStyleFamily eFam ); + SwXAutoStylesEnumerator( SwDoc& rDoc, IStyleAccess::SwAutoStyleFamily eFam ); virtual ~SwXAutoStylesEnumerator() override; //XEnumeration |