diff options
author | Noel Grandin <noel@peralex.com> | 2016-04-13 09:32:53 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2016-04-13 13:27:51 +0200 |
commit | 311bc1fc8b39d7f2168a04437034fb5b29c2c8b2 (patch) | |
tree | 6fc2f7582e7a4f6f9a3cff1153e0d2c4633c26fe /basic/inc | |
parent | 2d72addff24ddab4842e2660062a58ccfd9cd0d3 (diff) |
loplugin:passstuffbyref in basic
Change-Id: Ie93b33502325f00ba95ab168a445a347148f9edd
Diffstat (limited to 'basic/inc')
-rw-r--r-- | basic/inc/sbstdobj.hxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/basic/inc/sbstdobj.hxx b/basic/inc/sbstdobj.hxx index 100657ccf8eb..2b3bf05ebbfb 100644 --- a/basic/inc/sbstdobj.hxx +++ b/basic/inc/sbstdobj.hxx @@ -52,7 +52,7 @@ public: SbStdPicture(); virtual SbxVariable* Find( const OUString&, SbxClassType ) override; - Graphic GetGraphic() const { return aGraphic; } + const Graphic& GetGraphic() const { return aGraphic; } void SetGraphic( const Graphic& rGrf ) { aGraphic = rGrf; } }; @@ -93,7 +93,7 @@ public: void SetSize( sal_uInt16 nS ) { nSize = nS; } sal_uInt16 GetSize() const { return nSize; } void SetFontName( const OUString& rName ) { aName = rName; } - OUString GetFontName() const { return aName; } + const OUString& GetFontName() const { return aName; } }; // class SbStdClipboard |