summaryrefslogtreecommitdiff
path: root/sw/source/core/doc/docfld.cxx
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2020-09-29 16:49:22 +0100
committerCaolán McNamara <caolanm@redhat.com>2020-09-30 09:45:56 +0200
commitac94aa6f7d2a8e41e7260ba740813cdbbdd6a2ae (patch)
tree9531ca2797c1d171c85e6cf50854094af76b0dd6 /sw/source/core/doc/docfld.cxx
parent9a2357c0e2bb1d99a1816437d3862b7bd8c85898 (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/source/core/doc/docfld.cxx')
-rw-r--r--sw/source/core/doc/docfld.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/core/doc/docfld.cxx b/sw/source/core/doc/docfld.cxx
index 57f976d27e5b..1340aa1444b8 100644
--- a/sw/source/core/doc/docfld.cxx
+++ b/sw/source/core/doc/docfld.cxx
@@ -179,7 +179,7 @@ void SetGetExpField::SetBodyPos( const SwContentFrame& rFrame )
SwNodeIndex aIdx( rFrame.IsTextFrame()
? *static_cast<SwTextFrame const&>(rFrame).GetTextNodeFirst()
: *static_cast<SwNoTextFrame const&>(rFrame).GetNode() );
- SwDoc& rDoc = *aIdx.GetNodes().GetDoc();
+ SwDoc& rDoc = aIdx.GetNodes().GetDoc();
SwPosition aPos( aIdx );
bool const bResult = ::GetBodyTextNode( rDoc, aPos, rFrame );
OSL_ENSURE(bResult, "Where is the field?");