summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorNoel Grandin <noelgrandin@gmail.com>2022-08-07 08:36:01 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2022-08-07 11:20:34 +0200
commit2808c8a0941f0fc7ab8db4a109cb8dfa0d7c41f1 (patch)
treead4bf0af97ffaf2f213d6b581c72ebbcaa18b4d6 /sw
parent110cc21fe2d59ad76a28b56f029421c0f9672073 (diff)
return by const&
Change-Id: I9c364d53c9020e46a719af1868c14353d0ede67b Reviewed-on: https://gerrit.libreoffice.org/c/core/+/137917 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw')
-rw-r--r--sw/source/filter/ww8/ww8par.hxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/filter/ww8/ww8par.hxx b/sw/source/filter/ww8/ww8par.hxx
index fa33b75b197b..383c4e34c24f 100644
--- a/sw/source/filter/ww8/ww8par.hxx
+++ b/sw/source/filter/ww8/ww8par.hxx
@@ -567,7 +567,7 @@ class WW8FieldEntry
WW8FieldEntry &operator=(const WW8FieldEntry &rOther) noexcept;
void Swap(WW8FieldEntry &rOther) noexcept;
- SwNodeIndex GetPtNode() const { return maStartPos.GetPtNode(); };
+ const SwNodeIndex& GetPtNode() const { return maStartPos.GetPtNode(); };
sal_Int32 GetPtContent() const { return maStartPos.GetPtContent(); };
const OUString& GetBookmarkName() const { return msBookmarkName;}