diff options
author | Caolán McNamara <caolanm@redhat.com> | 2020-09-29 16:49:22 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2020-09-30 09:45:56 +0200 |
commit | ac94aa6f7d2a8e41e7260ba740813cdbbdd6a2ae (patch) | |
tree | 9531ca2797c1d171c85e6cf50854094af76b0dd6 /sw/inc/ndarr.hxx | |
parent | 9a2357c0e2bb1d99a1816437d3862b7bd8c85898 (diff) |
SwNodes::GetDoc can return a reference instead
Change-Id: I6c3b2e5b95fb9fac8faa36fc6ae378b92e08fd89
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/103639
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sw/inc/ndarr.hxx')
-rw-r--r-- | sw/inc/ndarr.hxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sw/inc/ndarr.hxx b/sw/inc/ndarr.hxx index 1492df35be6e..7e095c8fb0a6 100644 --- a/sw/inc/ndarr.hxx +++ b/sw/inc/ndarr.hxx @@ -299,8 +299,8 @@ public: bool const bCreateFrames = true); /// Which Doc contains the nodes-array? - SwDoc* GetDoc() { return &m_rMyDoc; } - const SwDoc* GetDoc() const { return &m_rMyDoc; } + SwDoc& GetDoc() { return m_rMyDoc; } + const SwDoc& GetDoc() const { return m_rMyDoc; } /** Search previous / next content node or table node with frames. If no end is given begin with the FrameIndex, else start search |