summaryrefslogtreecommitdiff
path: root/sw/inc/htmltbl.hxx
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2020-09-30 08:47:26 +0100
committerCaolán McNamara <caolanm@redhat.com>2020-09-30 14:27:21 +0200
commitdaa058c714804ffbd2aa1ff20096b4c79bebea0c (patch)
tree1f08b0cac20a0779426f67905ceaac4ce59ff1a7 /sw/inc/htmltbl.hxx
parent7672ac2e8764d9e4fcb5a896ef6210077907dcd0 (diff)
SwHTMLTableLayout::GetDoc can return a reference
Change-Id: I5d300ea19433b6439d8fca2152fa5ac1f5e90fef Reviewed-on: https://gerrit.libreoffice.org/c/core/+/103671 Tested-by: Caolán McNamara <caolanm@redhat.com> Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sw/inc/htmltbl.hxx')
-rw-r--r--sw/inc/htmltbl.hxx2
1 files changed, 1 insertions, 1 deletions
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 );