diff options
Diffstat (limited to 'sw')
-rw-r--r-- | sw/inc/authfld.hxx | 4 | ||||
-rw-r--r-- | sw/inc/redline.hxx | 2 | ||||
-rw-r--r-- | sw/inc/swmodule.hxx | 2 | ||||
-rw-r--r-- | sw/source/core/doc/docredln.cxx | 2 | ||||
-rw-r--r-- | sw/source/filter/ww8/wrtw8sty.cxx | 2 | ||||
-rw-r--r-- | sw/source/filter/ww8/wrtww8.hxx | 2 | ||||
-rw-r--r-- | sw/source/uibase/app/swmodul1.cxx | 2 | ||||
-rw-r--r-- | sw/source/uibase/inc/glosdoc.hxx | 2 | ||||
-rw-r--r-- | sw/source/uibase/inc/wrtsh.hxx | 2 | ||||
-rw-r--r-- | sw/source/uibase/misc/glosdoc.cxx | 2 | ||||
-rw-r--r-- | sw/source/uibase/utlui/initui.cxx | 4 | ||||
-rw-r--r-- | sw/source/uibase/wrtsh/wrtsh1.cxx | 2 |
12 files changed, 14 insertions, 14 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); diff --git a/sw/source/core/doc/docredln.cxx b/sw/source/core/doc/docredln.cxx index 7644a107200e..e2c061f004ac 100644 --- a/sw/source/core/doc/docredln.cxx +++ b/sw/source/core/doc/docredln.cxx @@ -1709,7 +1709,7 @@ std::size_t SwRangeRedline::GetAuthor( sal_uInt16 nPos ) const return GetRedlineData(nPos).nAuthor; } -OUString SwRangeRedline::GetAuthorString( sal_uInt16 nPos ) const +OUString const & SwRangeRedline::GetAuthorString( sal_uInt16 nPos ) const { return SW_MOD()->GetRedlineAuthor(GetRedlineData(nPos).nAuthor); } diff --git a/sw/source/filter/ww8/wrtw8sty.cxx b/sw/source/filter/ww8/wrtw8sty.cxx index 3b692e9825a0..812167721fbe 100644 --- a/sw/source/filter/ww8/wrtw8sty.cxx +++ b/sw/source/filter/ww8/wrtw8sty.cxx @@ -370,7 +370,7 @@ void MSWordStyles::BuildStyleIds() } } -OString MSWordStyles::GetStyleId(sal_uInt16 nId) const +OString const & MSWordStyles::GetStyleId(sal_uInt16 nId) const { return m_aStyleIds[nId]; } diff --git a/sw/source/filter/ww8/wrtww8.hxx b/sw/source/filter/ww8/wrtww8.hxx index 6fc71a97b624..1336fc9e2dc3 100644 --- a/sw/source/filter/ww8/wrtww8.hxx +++ b/sw/source/filter/ww8/wrtww8.hxx @@ -1571,7 +1571,7 @@ public: sal_uInt16 GetSlot( const SwFormat* pFormat ) const; /// Get styleId of the nId-th style (nId is its position in pFormatA). - OString GetStyleId(sal_uInt16 nId) const; + OString const & GetStyleId(sal_uInt16 nId) const; const SwFormat* GetSwFormat(sal_uInt16 nId) const { return m_pFormatA[nId]; } /// Get numbering rule of the nId-th style diff --git a/sw/source/uibase/app/swmodul1.cxx b/sw/source/uibase/app/swmodul1.cxx index 1e82eaf98bd2..00992b9e196c 100644 --- a/sw/source/uibase/app/swmodul1.cxx +++ b/sw/source/uibase/app/swmodul1.cxx @@ -418,7 +418,7 @@ void SwModule::SetRedlineAuthor(const OUString &rAuthor) InsertRedlineAuthor( m_sActAuthor ); } -OUString SwModule::GetRedlineAuthor(std::size_t nPos) +OUString const & SwModule::GetRedlineAuthor(std::size_t nPos) { OSL_ENSURE(nPos < m_pAuthorNames.size(), "author not found!"); //#i45342# RTF doc with no author table caused reader to crash while(nPos >= m_pAuthorNames.size()) diff --git a/sw/source/uibase/inc/glosdoc.hxx b/sw/source/uibase/inc/glosdoc.hxx index f9ba04987743..2ed0ef9fade9 100644 --- a/sw/source/uibase/inc/glosdoc.hxx +++ b/sw/source/uibase/inc/glosdoc.hxx @@ -97,7 +97,7 @@ public: ); size_t GetGroupCnt(); - OUString GetGroupName(size_t); + OUString const & GetGroupName(size_t); OUString GetGroupTitle( const OUString& rGroupName ); bool FindGroupName(OUString& rGroup); diff --git a/sw/source/uibase/inc/wrtsh.hxx b/sw/source/uibase/inc/wrtsh.hxx index 9f592df77473..cb3b317bf9d2 100644 --- a/sw/source/uibase/inc/wrtsh.hxx +++ b/sw/source/uibase/inc/wrtsh.hxx @@ -352,7 +352,7 @@ typedef bool (SwWrtShell:: *FNSimpleMove)(); void SetPageStyle(const OUString &rCollName); - OUString GetCurPageStyle() const; + OUString const & GetCurPageStyle() const; // change current style using the attributes in effect void QuickUpdateStyle(); diff --git a/sw/source/uibase/misc/glosdoc.cxx b/sw/source/uibase/misc/glosdoc.cxx index 8790a4763986..424d54290981 100644 --- a/sw/source/uibase/misc/glosdoc.cxx +++ b/sw/source/uibase/misc/glosdoc.cxx @@ -132,7 +132,7 @@ bool SwGlossaries::FindGroupName(OUString& rGroup) return false; } -OUString SwGlossaries::GetGroupName(size_t nGroupId) +OUString const & SwGlossaries::GetGroupName(size_t nGroupId) { OSL_ENSURE(nGroupId < m_GlosArr.size(), "SwGlossaries::GetGroupName: index out of bounds"); diff --git a/sw/source/uibase/utlui/initui.cxx b/sw/source/uibase/utlui/initui.cxx index bd5a30fb1a52..af3fd53daa89 100644 --- a/sw/source/uibase/utlui/initui.cxx +++ b/sw/source/uibase/utlui/initui.cxx @@ -329,7 +329,7 @@ namespace }; } -OUString SwAuthorityFieldType::GetAuthFieldName(ToxAuthorityField eType) +OUString const & SwAuthorityFieldType::GetAuthFieldName(ToxAuthorityField eType) { if(!pAuthFieldNameList) { @@ -367,7 +367,7 @@ static const char* STR_AUTH_TYPE_ARY[] = STR_AUTH_TYPE_CUSTOM5 }; -OUString SwAuthorityFieldType::GetAuthTypeName(ToxAuthorityType eType) +OUString const & SwAuthorityFieldType::GetAuthTypeName(ToxAuthorityType eType) { if(!pAuthFieldTypeList) { diff --git a/sw/source/uibase/wrtsh/wrtsh1.cxx b/sw/source/uibase/wrtsh/wrtsh1.cxx index d401687ec5a3..c8e9b93712b4 100644 --- a/sw/source/uibase/wrtsh/wrtsh1.cxx +++ b/sw/source/uibase/wrtsh/wrtsh1.cxx @@ -1504,7 +1504,7 @@ void SwWrtShell::SetPageStyle(const OUString &rCollName) // Access templates -OUString SwWrtShell::GetCurPageStyle() const +OUString const & SwWrtShell::GetCurPageStyle() const { return GetPageDesc(GetCurPageDesc( false/*bCalcFrame*/ )).GetName(); } |