diff options
author | Noel Grandin <noel@peralex.com> | 2016-04-14 09:23:37 +0200 |
---|---|---|
committer | Noel Grandin <noelgrandin@gmail.com> | 2016-04-14 08:23:20 +0000 |
commit | d8644c8edb405abd9d71e62e43e898c1d2a28fd2 (patch) | |
tree | 1d9f5e17b3f1a53cad84f2a3a1fe0875ec54d20b /vcl/inc/unx/glyphcache.hxx | |
parent | 6656693836a382e6dac3a8c7ae794517b5f92bcc (diff) |
loplugin:passstuffbyref in vcl
Change-Id: I17a4dc73c3fc81b0bfebdf442021af65f8f6166c
Reviewed-on: https://gerrit.libreoffice.org/24075
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Tested-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'vcl/inc/unx/glyphcache.hxx')
-rw-r--r-- | vcl/inc/unx/glyphcache.hxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/vcl/inc/unx/glyphcache.hxx b/vcl/inc/unx/glyphcache.hxx index bcadbb128a3a..04723cbd75ed 100644 --- a/vcl/inc/unx/glyphcache.hxx +++ b/vcl/inc/unx/glyphcache.hxx @@ -104,8 +104,8 @@ class GlyphMetric public: GlyphMetric() : mnAdvanceWidth(0) {} - Point GetOffset() const { return maOffset; } - Size GetSize() const { return maSize; } + const Point& GetOffset() const { return maOffset; } + const Size& GetSize() const { return maSize; } long GetCharWidth() const { return mnAdvanceWidth; } protected: @@ -155,7 +155,7 @@ public: FT_Face GetFtFace() const; int GetLoadFlags() const { return (mnLoadFlags & ~FT_LOAD_IGNORE_TRANSFORM); } void SetFontOptions(const std::shared_ptr<FontConfigFontOptions>&); - std::shared_ptr<FontConfigFontOptions> GetFontOptions() const; + const std::shared_ptr<FontConfigFontOptions>& GetFontOptions() const; bool NeedsArtificialBold() const { return mbArtBold; } bool NeedsArtificialItalic() const { return mbArtItalic; } |