From daa058c714804ffbd2aa1ff20096b4c79bebea0c Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Wed, 30 Sep 2020 08:47:26 +0100 Subject: SwHTMLTableLayout::GetDoc can return a reference MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: I5d300ea19433b6439d8fca2152fa5ac1f5e90fef Reviewed-on: https://gerrit.libreoffice.org/c/core/+/103671 Tested-by: Caolán McNamara Reviewed-by: Caolán McNamara --- sw/inc/htmltbl.hxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sw/inc/htmltbl.hxx') diff --git a/sw/inc/htmltbl.hxx b/sw/inc/htmltbl.hxx index 8f289c39d35d..7fad4b0fd087 100644 --- a/sw/inc/htmltbl.hxx +++ b/sw/inc/htmltbl.hxx @@ -233,7 +233,7 @@ class SwHTMLTableLayout const SwStartNode *GetAnyBoxStartNode() const; SwFrameFormat *FindFlyFrameFormat() const; - const SwDoc *GetDoc() const { return &GetAnyBoxStartNode()->GetDoc(); } + const SwDoc& GetDoc() const { return GetAnyBoxStartNode()->GetDoc(); } void Resize_( sal_uInt16 nAbsAvail, bool bRecalc ); -- cgit v1.2.3