diff options
author | Noel Grandin <noel@peralex.com> | 2016-04-14 10:20:52 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2016-04-14 10:24:47 +0200 |
commit | b8eb2946511ce617323b13dffe2b1d9704e0be60 (patch) | |
tree | d5aa4f91e75d654a1cdfcd75f26dd4b813a73ff7 /rsc | |
parent | d8644c8edb405abd9d71e62e43e898c1d2a28fd2 (diff) |
loplugin:passstuffbyref in various
Change-Id: I80070c83204e531c2f599f8a56193d6ffe0e5022
Diffstat (limited to 'rsc')
-rw-r--r-- | rsc/inc/rscclobj.hxx | 2 | ||||
-rw-r--r-- | rsc/inc/rscdb.hxx | 2 | ||||
-rw-r--r-- | rsc/inc/rsctree.hxx | 2 |
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 |