summaryrefslogtreecommitdiff
path: root/sw/source/filter/ww8/ww8par.hxx
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2016-04-13 15:33:00 +0200
committerNoel Grandin <noel@peralex.com>2016-04-14 09:21:40 +0200
commit89fa923a28fb351bb4faad1f69ca94d17f8a5b06 (patch)
tree55472b67e354712f0f8f6fd0b54a248a0f71018d /sw/source/filter/ww8/ww8par.hxx
parentd1f6f79d0df21c2bb3be9d191233eabf22afb14e (diff)
loplugin:passstuffbyref in sw
Change-Id: I124bdd4f28c7d7508e77b902dfa23c398454bf38
Diffstat (limited to 'sw/source/filter/ww8/ww8par.hxx')
-rw-r--r--sw/source/filter/ww8/ww8par.hxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/sw/source/filter/ww8/ww8par.hxx b/sw/source/filter/ww8/ww8par.hxx
index a9e1b77872ce..b0b970e1c7b7 100644
--- a/sw/source/filter/ww8/ww8par.hxx
+++ b/sw/source/filter/ww8/ww8par.hxx
@@ -557,7 +557,7 @@ namespace sw
explicit Position(const SwPosition &rPos);
Position(const Position &rPos);
operator SwPosition() const;
- SwNodeIndex GetPtNode() { return maPtNode; };
+ const SwNodeIndex& GetPtNode() { return maPtNode; };
sal_Int32 GetPtContent() { return mnPtContent; };
};
}
@@ -583,8 +583,8 @@ class WW8FieldEntry
SwNodeIndex GetPtNode() { return maStartPos.GetPtNode(); };
sal_Int32 GetPtContent() { return maStartPos.GetPtContent(); };
- OUString GetBookmarkName() { return msBookmarkName;}
- OUString GetBookmarkCode() { return msMarkCode;}
+ const OUString& GetBookmarkName() { return msBookmarkName;}
+ const OUString& GetBookmarkCode() { return msMarkCode;}
void SetBookmarkName(const OUString& bookmarkName);
void SetBookmarkType(const OUString& bookmarkType);
void SetBookmarkCode(const OUString& bookmarkCode);