summaryrefslogtreecommitdiff
path: root/sw/inc/tox.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'sw/inc/tox.hxx')
-rw-r--r--sw/inc/tox.hxx26
1 files changed, 13 insertions, 13 deletions
diff --git a/sw/inc/tox.hxx b/sw/inc/tox.hxx
index 91d19beb7b58..63cf28621892 100644
--- a/sw/inc/tox.hxx
+++ b/sw/inc/tox.hxx
@@ -120,11 +120,11 @@ public:
inline void SetSecondaryKeyReading(const OUString& rStr);
inline void SetCitationKeyReading(const OUString& rStr);
- inline OUString GetPrimaryKey() const;
- inline OUString GetSecondaryKey() const;
- inline OUString GetTextReading() const;
- inline OUString GetPrimaryKeyReading() const;
- inline OUString GetSecondaryKeyReading() const;
+ inline OUString const & GetPrimaryKey() const;
+ inline OUString const & GetSecondaryKey() const;
+ inline OUString const & GetTextReading() const;
+ inline OUString const & GetPrimaryKeyReading() const;
+ inline OUString const & GetSecondaryKeyReading() const;
bool IsAutoGenerated() const {return m_bAutoGenerated;}
void SetAutoGenerated(bool bSet) {m_bAutoGenerated = bSet;}
@@ -292,7 +292,7 @@ public:
SwForm& operator=( const SwForm& rForm );
inline void SetTemplate(sal_uInt16 nLevel, const OUString& rName);
- inline OUString GetTemplate(sal_uInt16 nLevel) const;
+ inline OUString const & GetTemplate(sal_uInt16 nLevel) const;
// #i21237#
void SetPattern(sal_uInt16 nLevel, const SwFormTokens& rName);
@@ -472,7 +472,7 @@ public:
// index of objects
- OUString GetStyleNames(sal_uInt16 nLevel) const
+ OUString const & GetStyleNames(sal_uInt16 nLevel) const
{
SAL_WARN_IF( nLevel >= MAXLEVEL, "sw", "Which level?");
return m_aStyleNames[nLevel];
@@ -599,31 +599,31 @@ inline sal_uInt16 SwTOXMark::GetLevel() const
return m_nLevel;
}
-inline OUString SwTOXMark::GetPrimaryKey() const
+inline OUString const & SwTOXMark::GetPrimaryKey() const
{
SAL_WARN_IF(GetTOXType()->GetType() != TOX_INDEX, "sw", "Wrong type");
return m_aPrimaryKey;
}
-inline OUString SwTOXMark::GetSecondaryKey() const
+inline OUString const & SwTOXMark::GetSecondaryKey() const
{
SAL_WARN_IF(GetTOXType()->GetType() != TOX_INDEX, "sw", "Wrong type");
return m_aSecondaryKey;
}
-inline OUString SwTOXMark::GetTextReading() const
+inline OUString const & SwTOXMark::GetTextReading() const
{
SAL_WARN_IF(GetTOXType()->GetType() != TOX_INDEX, "sw", "Wrong type");
return m_aTextReading;
}
-inline OUString SwTOXMark::GetPrimaryKeyReading() const
+inline OUString const & SwTOXMark::GetPrimaryKeyReading() const
{
SAL_WARN_IF(GetTOXType()->GetType() != TOX_INDEX, "sw", "Wrong type");
return m_aPrimaryKeyReading;
}
-inline OUString SwTOXMark::GetSecondaryKeyReading() const
+inline OUString const & SwTOXMark::GetSecondaryKeyReading() const
{
SAL_WARN_IF(GetTOXType()->GetType() != TOX_INDEX, "sw", "Wrong type");
return m_aSecondaryKeyReading;
@@ -637,7 +637,7 @@ inline void SwForm::SetTemplate(sal_uInt16 nLevel, const OUString& rTemplate)
m_aTemplate[nLevel] = rTemplate;
}
-inline OUString SwForm::GetTemplate(sal_uInt16 nLevel) const
+inline OUString const & SwForm::GetTemplate(sal_uInt16 nLevel) const
{
SAL_WARN_IF(nLevel >= GetFormMax(), "sw", "Index >= GetFormMax()");
return m_aTemplate[nLevel];