diff options
Diffstat (limited to 'sw/inc')
-rw-r--r-- | sw/inc/authfld.hxx | 4 | ||||
-rw-r--r-- | sw/inc/redline.hxx | 2 | ||||
-rw-r--r-- | sw/inc/swmodule.hxx | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/sw/inc/authfld.hxx b/sw/inc/authfld.hxx index 65a0327c18cb..e221dd031bbc 100644 --- a/sw/inc/authfld.hxx +++ b/sw/inc/authfld.hxx @@ -132,8 +132,8 @@ public: void SetSortKeys(sal_uInt16 nKeyCount, SwTOXSortKey const nKeys[]); //initui.cxx - static OUString GetAuthFieldName(ToxAuthorityField eType); - static OUString GetAuthTypeName(ToxAuthorityType eType); + static OUString const & GetAuthFieldName(ToxAuthorityField eType); + static OUString const & GetAuthTypeName(ToxAuthorityType eType); LanguageType GetLanguage() const {return m_eLanguage;} void SetLanguage(LanguageType nLang) {m_eLanguage = nLang;} diff --git a/sw/inc/redline.hxx b/sw/inc/redline.hxx index f5898a30e020..0ea5412a6592 100644 --- a/sw/inc/redline.hxx +++ b/sw/inc/redline.hxx @@ -217,7 +217,7 @@ public: sal_uInt16 GetStackCount() const; std::size_t GetAuthor( sal_uInt16 nPos = 0) const; - OUString GetAuthorString( sal_uInt16 nPos = 0 ) const; + OUString const & GetAuthorString( sal_uInt16 nPos = 0 ) const; const DateTime& GetTimeStamp( sal_uInt16 nPos = 0) const; RedlineType_t GetRealType( sal_uInt16 nPos = 0 ) const; RedlineType_t GetType( sal_uInt16 nPos = 0) const diff --git a/sw/inc/swmodule.hxx b/sw/inc/swmodule.hxx index 8b9d8e265a18..7302281e7f66 100644 --- a/sw/inc/swmodule.hxx +++ b/sw/inc/swmodule.hxx @@ -191,7 +191,7 @@ public: // Redlining. std::size_t GetRedlineAuthor(); - OUString GetRedlineAuthor(std::size_t nPos); + OUString const & GetRedlineAuthor(std::size_t nPos); /// See SwXTextDocument::getTrackedChangeAuthors(). OUString GetRedlineAuthorInfo(); std::size_t InsertRedlineAuthor(const OUString& rAuthor); |