summaryrefslogtreecommitdiff
path: root/sw/source/filter/ww8/ww8par.hxx
diff options
context:
space:
mode:
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);