summaryrefslogtreecommitdiff
path: root/rsc/inc
diff options
context:
space:
mode:
Diffstat (limited to 'rsc/inc')
-rw-r--r--rsc/inc/rscclobj.hxx2
-rw-r--r--rsc/inc/rscdb.hxx2
-rw-r--r--rsc/inc/rsctree.hxx2
3 files changed, 3 insertions, 3 deletions
diff --git a/rsc/inc/rscclobj.hxx b/rsc/inc/rscclobj.hxx
index 46aa38348cfe..eeb694f25cb7 100644
--- a/rsc/inc/rscclobj.hxx
+++ b/rsc/inc/rscclobj.hxx
@@ -38,7 +38,7 @@ public:
ObjNode( const RscId & rId, CLASS_DATA pData, sal_uLong lKey );
ObjNode * DelObjNode( RscTop * pClass, sal_uLong lFileKey );
sal_uInt32 GetId() const override;
- RscId GetRscId() const { return aRscId; }
+ const RscId& GetRscId() const { return aRscId; }
sal_uLong GetFileKey() const { return lFileKey; };
ObjNode* Search( const RscId &rName ) const //< search the index in the b-tree
{
diff --git a/rsc/inc/rscdb.hxx b/rsc/inc/rscdb.hxx
index fc04f9798abc..4f76a146fe1d 100644
--- a/rsc/inc/rscdb.hxx
+++ b/rsc/inc/rscdb.hxx
@@ -266,7 +266,7 @@ public:
{
nSourceCharSet = aCharSet;
}
- OString GetSearchPath() const { return aSearchPath; }
+ const OString& GetSearchPath() const { return aSearchPath; }
void SetSysSearchPath( const OString& rStr ) { aSysSearchPath = rStr; }
void InsertType( RscTop * pType )
{
diff --git a/rsc/inc/rsctree.hxx b/rsc/inc/rsctree.hxx
index 2fbd36575583..b5691980db94 100644
--- a/rsc/inc/rsctree.hxx
+++ b/rsc/inc/rsctree.hxx
@@ -86,7 +86,7 @@ public:
StringNode(const OString& rStr) { m_aName = rStr; }
StringNode* Search( const char * ) const;
- OString GetName() const { return m_aName; }
+ const OString& GetName() const { return m_aName; }
};
#endif // INCLUDED_RSC_INC_RSCTREE_HXX