summaryrefslogtreecommitdiff
path: root/lotuswordpro
diff options
context:
space:
mode:
Diffstat (limited to 'lotuswordpro')
-rw-r--r--lotuswordpro/source/filter/lwpatomholder.hxx2
-rw-r--r--lotuswordpro/source/filter/lwpbackgroundoverride.hxx2
-rw-r--r--lotuswordpro/source/filter/lwpcelllayout.hxx2
-rw-r--r--lotuswordpro/source/filter/lwpfoundry.hxx2
-rw-r--r--lotuswordpro/source/filter/lwpfrib.hxx2
-rw-r--r--lotuswordpro/source/filter/lwpfribmark.hxx2
-rw-r--r--lotuswordpro/source/filter/lwpfribsection.hxx4
-rw-r--r--lotuswordpro/source/filter/lwpfribtext.hxx4
-rw-r--r--lotuswordpro/source/filter/lwpgrfobj.hxx2
-rw-r--r--lotuswordpro/source/filter/lwplayout.hxx4
-rw-r--r--lotuswordpro/source/filter/lwplaypiece.hxx4
-rw-r--r--lotuswordpro/source/filter/lwpmarker.hxx6
-rw-r--r--lotuswordpro/source/filter/lwpoverride.hxx4
-rw-r--r--lotuswordpro/source/filter/lwppara.hxx8
-rw-r--r--lotuswordpro/source/filter/lwpparaproperty.hxx4
-rw-r--r--lotuswordpro/source/filter/lwpproplist.hxx4
-rw-r--r--lotuswordpro/source/filter/lwpshadow.hxx4
-rw-r--r--lotuswordpro/source/filter/lwpsilverbullet.hxx8
-rw-r--r--lotuswordpro/source/filter/lwpstory.hxx2
-rw-r--r--lotuswordpro/source/filter/lwptablelayout.hxx4
-rw-r--r--lotuswordpro/source/filter/lwptblcell.hxx8
-rw-r--r--lotuswordpro/source/filter/xfilter/xfbookmark.hxx4
-rw-r--r--lotuswordpro/source/filter/xfilter/xfcontent.hxx2
-rw-r--r--lotuswordpro/source/filter/xfilter/xfdrawareastyle.hxx4
-rw-r--r--lotuswordpro/source/filter/xfilter/xfdrawlinestyle.hxx4
-rw-r--r--lotuswordpro/source/filter/xfilter/xffont.hxx4
-rw-r--r--lotuswordpro/source/filter/xfilter/xffontdecl.hxx4
-rw-r--r--lotuswordpro/source/filter/xfilter/xfnumberstyle.hxx2
-rw-r--r--lotuswordpro/source/filter/xfilter/xfparastyle.hxx6
-rw-r--r--lotuswordpro/source/filter/xfilter/xfsaxattrlist.hxx4
-rw-r--r--lotuswordpro/source/filter/xfilter/xfshadow.hxx4
-rw-r--r--lotuswordpro/source/filter/xfilter/xftextstyle.hxx2
32 files changed, 59 insertions, 63 deletions
diff --git a/lotuswordpro/source/filter/lwpatomholder.hxx b/lotuswordpro/source/filter/lwpatomholder.hxx
index 2450bb34edd5..e9ad25a727a0 100644
--- a/lotuswordpro/source/filter/lwpatomholder.hxx
+++ b/lotuswordpro/source/filter/lwpatomholder.hxx
@@ -76,7 +76,7 @@ public:
void Read(LwpObjectStream *pStrm);
void ReadPathAtom(LwpObjectStream *pStrm);
void Skip(LwpObjectStream *pStrm);
- OUString str(){return m_String;}
+ const OUString& str() const {return m_String;}
inline bool HasValue();
};
inline bool LwpAtomHolder::HasValue()
diff --git a/lotuswordpro/source/filter/lwpbackgroundoverride.hxx b/lotuswordpro/source/filter/lwpbackgroundoverride.hxx
index 4cea09869b4c..3468b73d2ee7 100644
--- a/lotuswordpro/source/filter/lwpbackgroundoverride.hxx
+++ b/lotuswordpro/source/filter/lwpbackgroundoverride.hxx
@@ -82,7 +82,7 @@ public:
pStrm->SkipExtra();
}
- LwpColor GetBackColor(){ return m_aStuff.m_aFillColor; }
+ const LwpColor& GetBackColor(){ return m_aStuff.m_aFillColor; }
LwpBackgroundStuff& GetBGStuff() { return m_aStuff; }
protected:
diff --git a/lotuswordpro/source/filter/lwpcelllayout.hxx b/lotuswordpro/source/filter/lwpcelllayout.hxx
index e818d839d012..18a1bb833e78 100644
--- a/lotuswordpro/source/filter/lwpcelllayout.hxx
+++ b/lotuswordpro/source/filter/lwpcelllayout.hxx
@@ -99,7 +99,7 @@ public:
LwpTableLayout * GetTableLayout();
virtual void SetCellMap();
double GetActualWidth();
- OUString GetNumfmtName(){return m_NumfmtName;}
+ const OUString& GetNumfmtName(){return m_NumfmtName;}
protected:
void Read() override;
LwpTable * GetTable();
diff --git a/lotuswordpro/source/filter/lwpfoundry.hxx b/lotuswordpro/source/filter/lwpfoundry.hxx
index 68235f5f0cae..b5d4966cc52b 100644
--- a/lotuswordpro/source/filter/lwpfoundry.hxx
+++ b/lotuswordpro/source/filter/lwpfoundry.hxx
@@ -106,7 +106,7 @@ private:
LwpObjectID m_TableRange;
public:
void Read(LwpObjectStream *pStrm);
- LwpObjectID GetTableRangeID(){ return m_TableRange;}
+ const LwpObjectID& GetTableRangeID(){ return m_TableRange;}
};
class LwpBulletManager
diff --git a/lotuswordpro/source/filter/lwpfrib.hxx b/lotuswordpro/source/filter/lwpfrib.hxx
index a34a6b66aa13..509ea1e4d402 100644
--- a/lotuswordpro/source/filter/lwpfrib.hxx
+++ b/lotuswordpro/source/filter/lwpfrib.hxx
@@ -105,7 +105,7 @@ protected:
OUString m_StyleName;
public:
bool m_ModFlag;
- OUString GetStyleName(){return m_StyleName;}
+ const OUString& GetStyleName(){return m_StyleName;}
void SetModifiers(ModifierInfo* pModifiers);
ModifierInfo* GetModifiers(){return m_pModifiers;}
virtual void RegisterStyle(LwpFoundry* pFoundry);
diff --git a/lotuswordpro/source/filter/lwpfribmark.hxx b/lotuswordpro/source/filter/lwpfribmark.hxx
index f4e3affea5f1..226e57f0c460 100644
--- a/lotuswordpro/source/filter/lwpfribmark.hxx
+++ b/lotuswordpro/source/filter/lwpfribmark.hxx
@@ -91,7 +91,7 @@ public:
explicit LwpFribBookMark( LwpPara* pPara );
virtual ~LwpFribBookMark(){}
void Read(LwpObjectStream* pObjStrm, sal_uInt16 len) override;
- LwpObjectID GetMarkerID(){return m_objMarker;}
+ const LwpObjectID& GetMarkerID(){return m_objMarker;}
sal_uInt8 GetType(){return m_nType;}
enum{MARKER_START=1,MARKER_END,MARKER_NONE};
void XFConvert(XFContentContainer* pXFPara);
diff --git a/lotuswordpro/source/filter/lwpfribsection.hxx b/lotuswordpro/source/filter/lwpfribsection.hxx
index 9864bc2c8cfb..6228d87e60e0 100644
--- a/lotuswordpro/source/filter/lwpfribsection.hxx
+++ b/lotuswordpro/source/filter/lwpfribsection.hxx
@@ -81,8 +81,8 @@ public:
void ParseSection(LwpFrib* pFrib);
XFSection* CreateXFSection();
- OUString GetStyleName(){ return m_StyleName;}
- OUString GetFillerPageStyleName(){ return m_FillerPageStyleName;}
+ const OUString& GetStyleName(){ return m_StyleName;}
+ const OUString& GetFillerPageStyleName(){ return m_FillerPageStyleName;}
bool IsNextPageType();
private:
diff --git a/lotuswordpro/source/filter/lwpfribtext.hxx b/lotuswordpro/source/filter/lwpfribtext.hxx
index 84d66d5fc050..c4227dafffa9 100644
--- a/lotuswordpro/source/filter/lwpfribtext.hxx
+++ b/lotuswordpro/source/filter/lwpfribtext.hxx
@@ -74,7 +74,7 @@ private:
OUString m_Content;
bool m_bNoUnicode;
public:
- OUString GetText(){return m_Content;}
+ const OUString& GetText(){return m_Content;}
};
class LwpFribHardSpace : public LwpFrib
@@ -192,7 +192,7 @@ public:
private:
OUString m_Content;
public:
- OUString GetText(){return m_Content;}
+ const OUString& GetText(){return m_Content;}
};
class LwpFribPageNumber : public LwpFrib
diff --git a/lotuswordpro/source/filter/lwpgrfobj.hxx b/lotuswordpro/source/filter/lwpgrfobj.hxx
index d4f62bdf10b4..fd03b9595e90 100644
--- a/lotuswordpro/source/filter/lwpgrfobj.hxx
+++ b/lotuswordpro/source/filter/lwpgrfobj.hxx
@@ -124,7 +124,7 @@ public:
void GetGrafOrgSize(double& rWidth, double& rHeight) override;
sal_Int16 IsLinked(){ return m_bIsLinked;}
- OUString GetLinkedFilePath(){ return m_LinkedFilePath;}
+ const OUString& GetLinkedFilePath(){ return m_LinkedFilePath;}
};
#endif
diff --git a/lotuswordpro/source/filter/lwplayout.hxx b/lotuswordpro/source/filter/lwplayout.hxx
index 991dfac5fed7..835d94d335dd 100644
--- a/lotuswordpro/source/filter/lwplayout.hxx
+++ b/lotuswordpro/source/filter/lwplayout.hxx
@@ -162,7 +162,7 @@ public:
m_bGettingExtMarginsValue = false;
return fRet;
}
- OUString GetStyleName(){ return m_StyleName;}
+ const OUString& GetStyleName(){ return m_StyleName;}
bool IsComplex();
virtual bool IsAnchorPage(){ return false;}
virtual bool IsAnchorFrame(){ return false;}
@@ -478,7 +478,7 @@ public:
* @descr: Get font style for setting position of frame
*
*/
- rtl::Reference<XFFont> GetFont() { return m_pFont; }
+ const rtl::Reference<XFFont>& GetFont() { return m_pFont; }
void SetFont(rtl::Reference<XFFont> const & pFont);
enum WrapType
{
diff --git a/lotuswordpro/source/filter/lwplaypiece.hxx b/lotuswordpro/source/filter/lwplaypiece.hxx
index 173aa19d22cf..1fe7bb43c4ff 100644
--- a/lotuswordpro/source/filter/lwplaypiece.hxx
+++ b/lotuswordpro/source/filter/lwplaypiece.hxx
@@ -81,8 +81,8 @@ public:
virtual void Parse(IXFStream* pOutputStream) override;
sal_Int32 GetWidth() { return m_nWidth; }
sal_Int32 GetHeight() { return m_nHeight; }
- LwpPoint GetOrigin() { return m_Origin; }
- LwpPoint GetAbsoluteOrigin() { return m_AbsoluteOrigin; }
+ const LwpPoint& GetOrigin() { return m_Origin; }
+ const LwpPoint& GetAbsoluteOrigin() { return m_AbsoluteOrigin; }
sal_uInt8 GetContentOrientation(){ return m_ContentOrientation;}
protected:
diff --git a/lotuswordpro/source/filter/lwpmarker.hxx b/lotuswordpro/source/filter/lwpmarker.hxx
index 7684decd4c5f..7b65650f64f3 100644
--- a/lotuswordpro/source/filter/lwpmarker.hxx
+++ b/lotuswordpro/source/filter/lwpmarker.hxx
@@ -257,11 +257,11 @@ public:
LwpRubyMarker(LwpObjectHeader &objHdr, LwpSvStream *pStrm);
virtual ~LwpRubyMarker(){}
void Read() override;
- OUString GetRubyText(){return m_strRubyText;}
+ const OUString& GetRubyText(){return m_strRubyText;}
void SetRubyText(const OUString& sText){m_strRubyText = sText;}
- OUString GetTextStyleName(){return m_TextStyle;}
+ const OUString& GetTextStyleName(){return m_TextStyle;}
void SetTextStyleName(const OUString& sName){m_TextStyle = sName;}
- OUString GetRubyStyleName(){return m_RubyStyle;}
+ const OUString& GetRubyStyleName(){return m_RubyStyle;}
void SetRubyStyleName(const OUString& sName){m_RubyStyle = sName;}
private:
LwpObjectID m_objLayout;
diff --git a/lotuswordpro/source/filter/lwpoverride.hxx b/lotuswordpro/source/filter/lwpoverride.hxx
index 84abc9288bdd..0eac133cf287 100644
--- a/lotuswordpro/source/filter/lwpoverride.hxx
+++ b/lotuswordpro/source/filter/lwpoverride.hxx
@@ -181,7 +181,7 @@ public:
void Read(LwpObjectStream* pStrm) override;
- inline LwpObjectID GetSilverBullet() const;
+ inline const LwpObjectID& GetSilverBullet() const;
void Override(LwpBulletOverride* pOther);
@@ -222,7 +222,7 @@ private:
bool m_bIsNull;
};
-inline LwpObjectID LwpBulletOverride::GetSilverBullet() const
+inline const LwpObjectID& LwpBulletOverride::GetSilverBullet() const
{
return m_SilverBullet;
}
diff --git a/lotuswordpro/source/filter/lwppara.hxx b/lotuswordpro/source/filter/lwppara.hxx
index 9b9edc083e9a..dfa479716852 100644
--- a/lotuswordpro/source/filter/lwppara.hxx
+++ b/lotuswordpro/source/filter/lwppara.hxx
@@ -161,7 +161,7 @@ public:
LwpNumberingOverride* GetParaNumbering();
inline LwpSilverBullet* GetSilverBullet();
- OUString GetBulletChar() const;
+ const OUString& GetBulletChar() const;
sal_uInt32 GetBulletFontID() const;
sal_uInt16 GetLevel() const;
bool GetBulletFlag() const;
@@ -171,7 +171,7 @@ public:
double GetBelowSpacing();
LwpParaProperty* GetProperty(sal_uInt32 nPropType);
void GatherDropcapInfo();
- OUString GetBulletStyleName() const;
+ const OUString& GetBulletStyleName() const;
void SetBelowSpacing(double value);
void SetBulletFlag(bool bFlag);
void SetIndent(LwpIndentOverride* pIndentOverride);
@@ -289,7 +289,7 @@ inline LwpSilverBullet* LwpPara::GetSilverBullet()
{
return m_pSilverBullet;
}
-inline OUString LwpPara::GetBulletChar() const
+inline const OUString& LwpPara::GetBulletChar() const
{
return m_Content;
}
@@ -317,7 +317,7 @@ inline XFContentContainer* LwpPara::GetXFContainer()
{
return m_pXFContainer;
}
-inline OUString LwpPara::GetBulletStyleName() const
+inline const OUString& LwpPara::GetBulletStyleName() const
{
return m_aBulletStyleName;
}
diff --git a/lotuswordpro/source/filter/lwpparaproperty.hxx b/lotuswordpro/source/filter/lwpparaproperty.hxx
index b75c099ccb56..8bf7cd9d5863 100644
--- a/lotuswordpro/source/filter/lwpparaproperty.hxx
+++ b/lotuswordpro/source/filter/lwpparaproperty.hxx
@@ -127,13 +127,13 @@ public:
virtual ~LwpParaIndentProperty();
LwpIndentOverride* GetIndent();
sal_uInt32 GetType() override;
- inline LwpObjectID GetIndentID();
+ inline const LwpObjectID& GetIndentID();
private:
LwpObjectID m_aIndentID;
LwpIndentOverride* m_pIndent;
};
-inline LwpObjectID LwpParaIndentProperty::GetIndentID()
+inline const LwpObjectID& LwpParaIndentProperty::GetIndentID()
{
return m_aIndentID;
}
diff --git a/lotuswordpro/source/filter/lwpproplist.hxx b/lotuswordpro/source/filter/lwpproplist.hxx
index 7ad14dfc68ad..3dedce7e8f28 100644
--- a/lotuswordpro/source/filter/lwpproplist.hxx
+++ b/lotuswordpro/source/filter/lwpproplist.hxx
@@ -72,8 +72,8 @@ public:
void Read() override;
bool IsNamed(const OUString& name);
LwpPropListElement* GetNext();
- LwpAtomHolder GetValue(){return m_Value;}
- LwpAtomHolder GetName(){return m_Name;}
+ const LwpAtomHolder& GetValue(){return m_Value;}
+ const LwpAtomHolder& GetName(){return m_Name;}
private:
virtual ~LwpPropListElement(){}
diff --git a/lotuswordpro/source/filter/lwpshadow.hxx b/lotuswordpro/source/filter/lwpshadow.hxx
index 3ffaa726ebe6..b3a773ff05e7 100644
--- a/lotuswordpro/source/filter/lwpshadow.hxx
+++ b/lotuswordpro/source/filter/lwpshadow.hxx
@@ -80,7 +80,7 @@ public:
double GetOffsetY();
- LwpColor GetColor();
+ const LwpColor& GetColor();
inline LwpShadow& operator = (const LwpShadow& rOther);
@@ -101,7 +101,7 @@ inline double LwpShadow::GetOffsetY()
return LwpTools::ConvertFromUnitsToMetric(m_nDirY);
}
-inline LwpColor LwpShadow::GetColor()
+inline const LwpColor& LwpShadow::GetColor()
{
return m_aColor;
}
diff --git a/lotuswordpro/source/filter/lwpsilverbullet.hxx b/lotuswordpro/source/filter/lwpsilverbullet.hxx
index 8ddbf871b175..a3a23e5fe329 100644
--- a/lotuswordpro/source/filter/lwpsilverbullet.hxx
+++ b/lotuswordpro/source/filter/lwpsilverbullet.hxx
@@ -101,7 +101,7 @@ public:
OUString GetBulletFontName();
- inline OUString GetBulletStyleName() const;
+ const OUString& GetBulletStyleName() const;
OUString GetBulletChar();
@@ -109,10 +109,6 @@ public:
static OUString GetSuffix() { return OUString(); }
- ;
-
- ;
-
bool HasName();
static OUString GetNumCharByStyleID(LwpFribParaNumber* pParaNumber);
@@ -152,7 +148,7 @@ private:
CUMULATIVE = 0x10
};
};
-inline OUString LwpSilverBullet::GetBulletStyleName() const
+inline const OUString& LwpSilverBullet::GetBulletStyleName() const
{
return m_strStyleName;
}
diff --git a/lotuswordpro/source/filter/lwpstory.hxx b/lotuswordpro/source/filter/lwpstory.hxx
index 619ea1354aa6..1d43ab10b094 100644
--- a/lotuswordpro/source/filter/lwpstory.hxx
+++ b/lotuswordpro/source/filter/lwpstory.hxx
@@ -111,7 +111,7 @@ public:
bool GetDropcapFlag() { return m_bDropcap; }
LwpPageLayout* GetCurrentLayout() { return m_pCurrentLayout; }
inline LwpMiddleLayout* GetTabLayout();//for register tab style
- OUString GetSectionName() { return m_CurrSectionName; }
+ const OUString& GetSectionName() { return m_CurrSectionName; }
LwpHyperlinkMgr* GetHyperlinkMgr() { return m_pHyperlinkMgr; }
inline bool IsPMModified() { return m_bPMModified; }
diff --git a/lotuswordpro/source/filter/lwptablelayout.hxx b/lotuswordpro/source/filter/lwptablelayout.hxx
index c139ef896f3e..3dfd32f369df 100644
--- a/lotuswordpro/source/filter/lwptablelayout.hxx
+++ b/lotuswordpro/source/filter/lwptablelayout.hxx
@@ -129,10 +129,10 @@ public:
void XFConvert(XFContentContainer* pCont) override;
void ConvertTable(XFTable* pXFTable,sal_uInt16 nStartRow,
sal_uInt16 nEndRow,sal_uInt8 nStartCol,sal_uInt8 nEndCol);
- OUString GetDefaultRowStyleName(){return m_DefaultRowStyleName;}
+ const OUString& GetDefaultRowStyleName(){return m_DefaultRowStyleName;}
void SetCellsMap(sal_uInt16 nRow,sal_uInt8 nCol,XFCell* pXFCell);
XFCell* GetCellsMap(sal_uInt16 nRow,sal_uInt8 nCol);
- std::map<sal_uInt16,LwpRowLayout*> GetRowsMap(){return m_RowsMap;}
+ const std::map<sal_uInt16,LwpRowLayout*>& GetRowsMap(){return m_RowsMap;}
LwpRowLayout* GetRowLayout(sal_uInt16 nRow);
private:
void ConvertDefaultRow(XFTable* pXFTable,sal_uInt8 nStartCol,
diff --git a/lotuswordpro/source/filter/lwptblcell.hxx b/lotuswordpro/source/filter/lwptblcell.hxx
index 99eda42d2a71..c6b8f58593cc 100644
--- a/lotuswordpro/source/filter/lwptblcell.hxx
+++ b/lotuswordpro/source/filter/lwptblcell.hxx
@@ -84,7 +84,7 @@ public:
virtual void Parse(IXFStream* pOutputStream) override;
LwpObjectID GetNextID(){return GetNext();}
sal_uInt8 GetColumnID(){return cColumn;}
- LwpObjectID GetValueID(){return cValue;}
+ const LwpObjectID& GetValueID(){return cValue;}
virtual void Convert(XFCell * pCell, LwpTableLayout* pCellsMap=nullptr);
protected:
@@ -146,8 +146,8 @@ public:
LwpTableRange(LwpObjectHeader &objHdr, LwpSvStream* pStrm);
void Parse(IXFStream* pOutputStream) override;
- LwpObjectID GetCellRangeID(){return cpCellRange;}
- LwpObjectID GetTableID(){ return cqTable;}
+ const LwpObjectID& GetCellRangeID(){return cpCellRange;}
+ const LwpObjectID& GetTableID(){ return cqTable;}
LwpTableRange* GetNext() { return dynamic_cast<LwpTableRange*>(LwpDLVList::GetNext().obj().get());}
protected:
LwpObjectID cqTable;
@@ -166,7 +166,7 @@ public:
LwpCellRange(LwpObjectHeader &objHdr, LwpSvStream* pStrm);
void Parse(IXFStream* pOutputStream) override;
- LwpObjectID GetFolderID(){return cpFolder;}
+ const LwpObjectID& GetFolderID(){return cpFolder;}
protected:
LwpObjectID cpFolder;
void Read() override;
diff --git a/lotuswordpro/source/filter/xfilter/xfbookmark.hxx b/lotuswordpro/source/filter/xfilter/xfbookmark.hxx
index d3fc0b117311..0662393aaa90 100644
--- a/lotuswordpro/source/filter/xfilter/xfbookmark.hxx
+++ b/lotuswordpro/source/filter/xfilter/xfbookmark.hxx
@@ -74,9 +74,9 @@ public:
m_bStart = isStart;
}
- OUString GetDivision(){return m_strDivision;}
+ const OUString& GetDivision(){return m_strDivision;}
void SetDivision(const OUString& sDivName){m_strDivision = sDivName;}
- OUString GetName(){return m_strName;}
+ const OUString& GetName(){return m_strName;}
public:
/**
diff --git a/lotuswordpro/source/filter/xfilter/xfcontent.hxx b/lotuswordpro/source/filter/xfilter/xfcontent.hxx
index 29a2fd070e6e..ef50c44e7e2d 100644
--- a/lotuswordpro/source/filter/xfilter/xfcontent.hxx
+++ b/lotuswordpro/source/filter/xfilter/xfcontent.hxx
@@ -91,7 +91,7 @@ public:
/**
* @short: return the style name.
*/
- OUString GetStyleName() {return m_strStyleName;}
+ const OUString& GetStyleName() {return m_strStyleName;}
void DoToXml(IXFStream* stream)
{
diff --git a/lotuswordpro/source/filter/xfilter/xfdrawareastyle.hxx b/lotuswordpro/source/filter/xfilter/xfdrawareastyle.hxx
index 4c0e01eae930..bff022b68cc9 100644
--- a/lotuswordpro/source/filter/xfilter/xfdrawareastyle.hxx
+++ b/lotuswordpro/source/filter/xfilter/xfdrawareastyle.hxx
@@ -84,7 +84,7 @@ public:
enumXFAreaStyle GetAreaStyle();
- XFColor GetBackColor();
+ const XFColor& GetBackColor();
virtual enumXFStyle GetStyleFamily() override;
@@ -134,7 +134,7 @@ inline enumXFAreaStyle XFDrawAreaStyle::GetAreaStyle()
return m_eAreaStyle;
}
-inline XFColor XFDrawAreaStyle::GetBackColor()
+inline const XFColor& XFDrawAreaStyle::GetBackColor()
{
return m_aBackColor;
}
diff --git a/lotuswordpro/source/filter/xfilter/xfdrawlinestyle.hxx b/lotuswordpro/source/filter/xfilter/xfdrawlinestyle.hxx
index 5a8f6cf781a2..b450f499b9eb 100644
--- a/lotuswordpro/source/filter/xfilter/xfdrawlinestyle.hxx
+++ b/lotuswordpro/source/filter/xfilter/xfdrawlinestyle.hxx
@@ -125,7 +125,7 @@ public:
double GetWidth();
- XFColor GetColor();
+ const XFColor& GetColor() const;
sal_Int32 GetTransparency();
@@ -200,7 +200,7 @@ inline double XFDrawLineStyle::GetWidth()
return m_fWidth;
}
-inline XFColor XFDrawLineStyle::GetColor()
+inline const XFColor& XFDrawLineStyle::GetColor() const
{
return m_aColor;
}
diff --git a/lotuswordpro/source/filter/xfilter/xffont.hxx b/lotuswordpro/source/filter/xfilter/xffont.hxx
index 95ecbfa2fb84..99d6095b8d48 100644
--- a/lotuswordpro/source/filter/xfilter/xffont.hxx
+++ b/lotuswordpro/source/filter/xfilter/xffont.hxx
@@ -216,7 +216,7 @@ public:
enumXFTransform GetTransform();
sal_Int16 GetFontSize();
- XFColor GetColor();
+ const XFColor& GetColor();
void ToXml(IXFStream *pStrm);
@@ -415,7 +415,7 @@ inline sal_Int16 XFFont::GetFontSize()
return m_nFontSize;
}
-inline XFColor XFFont::GetColor()
+inline const XFColor& XFFont::GetColor()
{
return m_aColor;
}
diff --git a/lotuswordpro/source/filter/xfilter/xffontdecl.hxx b/lotuswordpro/source/filter/xfilter/xffontdecl.hxx
index d733bdc92563..a2bb7e5ec5c2 100644
--- a/lotuswordpro/source/filter/xfilter/xffontdecl.hxx
+++ b/lotuswordpro/source/filter/xfilter/xffontdecl.hxx
@@ -77,12 +77,12 @@ public:
/**
* @descr Get font name.
*/
- OUString GetFontName() { return m_strFontName;}
+ const OUString& GetFontName() { return m_strFontName;}
/**
* @descr Get font family.
*/
- OUString GetFontFamily() { return m_strFontFamily;}
+ const OUString& GetFontFamily() { return m_strFontFamily;}
bool GetFontPitchFixed() { return m_bPitchFixed;}
diff --git a/lotuswordpro/source/filter/xfilter/xfnumberstyle.hxx b/lotuswordpro/source/filter/xfilter/xfnumberstyle.hxx
index 7848d44a76ce..0c6da3c488fe 100644
--- a/lotuswordpro/source/filter/xfilter/xfnumberstyle.hxx
+++ b/lotuswordpro/source/filter/xfilter/xfnumberstyle.hxx
@@ -76,7 +76,7 @@ public:
void SetGroup();
void SetColor(const XFColor& color);
- XFColor GetColor(){return m_aColor;}
+ const XFColor& GetColor() {return m_aColor;}
void SetPrefix(const OUString& prefix);
diff --git a/lotuswordpro/source/filter/xfilter/xfparastyle.hxx b/lotuswordpro/source/filter/xfilter/xfparastyle.hxx
index 9144bff2c8ed..1ca827ce42e3 100644
--- a/lotuswordpro/source/filter/xfilter/xfparastyle.hxx
+++ b/lotuswordpro/source/filter/xfilter/xfparastyle.hxx
@@ -107,7 +107,7 @@ public:
*/
void SetMasterPage(const OUString& master);
- OUString GetMasterPage();
+ const OUString& GetMasterPage();
/**
* @descr set the paragraph default font.
@@ -119,7 +119,7 @@ public:
/**
* @descr get the font object.
*/
- rtl::Reference<XFFont> GetFont(){ return m_pFont; }
+ const rtl::Reference<XFFont>& GetFont(){ return m_pFont; }
/**
* @descr Set the indent of the paragraph.This is the indent for
@@ -281,7 +281,7 @@ inline void XFParaStyle::ClearTabStyles()
m_aTabs.Reset();
}
-inline OUString XFParaStyle::GetMasterPage()
+inline const OUString& XFParaStyle::GetMasterPage()
{
return m_strMasterPage;
}
diff --git a/lotuswordpro/source/filter/xfilter/xfsaxattrlist.hxx b/lotuswordpro/source/filter/xfilter/xfsaxattrlist.hxx
index 10879652f620..629fcd8ddd12 100644
--- a/lotuswordpro/source/filter/xfilter/xfsaxattrlist.hxx
+++ b/lotuswordpro/source/filter/xfilter/xfsaxattrlist.hxx
@@ -77,7 +77,7 @@ public:
virtual void Clear() override;
- css::uno::Reference<css::xml::sax::XAttributeList> GetAttributeList() const;
+ const css::uno::Reference<css::xml::sax::XAttributeList>& GetAttributeList() const;
friend class XFSaxStream;
private:
@@ -86,7 +86,7 @@ private:
};
-inline css::uno::Reference<css::xml::sax::XAttributeList> XFSaxAttrList::GetAttributeList() const
+inline const css::uno::Reference<css::xml::sax::XAttributeList>& XFSaxAttrList::GetAttributeList() const
{
return m_xAttrList;
}
diff --git a/lotuswordpro/source/filter/xfilter/xfshadow.hxx b/lotuswordpro/source/filter/xfilter/xfshadow.hxx
index 9d9d872e561b..1fcae472176c 100644
--- a/lotuswordpro/source/filter/xfilter/xfshadow.hxx
+++ b/lotuswordpro/source/filter/xfilter/xfshadow.hxx
@@ -101,7 +101,7 @@ public:
/**
* @descr return shadow color.
*/
- XFColor GetColor();
+ const XFColor& GetColor();
OUString ToString();
@@ -140,7 +140,7 @@ inline void XFShadow::SetColor(const XFColor& color)
m_aColor = color;
}
-inline XFColor XFShadow::GetColor()
+inline const XFColor& XFShadow::GetColor()
{
return m_aColor;
}
diff --git a/lotuswordpro/source/filter/xfilter/xftextstyle.hxx b/lotuswordpro/source/filter/xfilter/xftextstyle.hxx
index 361cca9952db..750442c1cf6a 100644
--- a/lotuswordpro/source/filter/xfilter/xftextstyle.hxx
+++ b/lotuswordpro/source/filter/xfilter/xftextstyle.hxx
@@ -84,7 +84,7 @@ public:
*/
void SetFont(rtl::Reference<XFFont> const & font);
- rtl::Reference<XFFont> GetFont(){ return m_pFont; }
+ const rtl::Reference<XFFont>& GetFont(){ return m_pFont; }
virtual enumXFStyle GetStyleFamily() override;