diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-08-22 16:33:14 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-08-23 09:12:23 +0200 |
commit | 9d5b9bf881606e83a051cc192d08c4690f98a8ba (patch) | |
tree | 448a72316772fc2b5588d70b53ec5223fb7d0769 /vcl/unx/generic/gdi/cairotextrender.cxx | |
parent | 4ad54c347180f227fac127b70c4072c192c21ddd (diff) |
loplugin:returnconstval in vcl
Change-Id: Id4a0b460ba3c43e80b80ae6e2da9e40a6753e14c
Reviewed-on: https://gerrit.libreoffice.org/77965
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'vcl/unx/generic/gdi/cairotextrender.cxx')
-rw-r--r-- | vcl/unx/generic/gdi/cairotextrender.cxx | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/vcl/unx/generic/gdi/cairotextrender.cxx b/vcl/unx/generic/gdi/cairotextrender.cxx index f72664657673..8b55ab6da58d 100644 --- a/vcl/unx/generic/gdi/cairotextrender.cxx +++ b/vcl/unx/generic/gdi/cairotextrender.cxx @@ -346,13 +346,12 @@ void CairoTextRender::DrawTextLayout(const GenericSalLayout& rLayout, const SalG releaseCairoContext(cr); } -const FontCharMapRef CairoTextRender::GetFontCharMap() const +FontCharMapRef CairoTextRender::GetFontCharMap() const { if( !mpFreetypeFont[0] ) return nullptr; - const FontCharMapRef xFCMap = mpFreetypeFont[0]->GetFontCharMap(); - return xFCMap; + return mpFreetypeFont[0]->GetFontCharMap(); } bool CairoTextRender::GetFontCapabilities(vcl::FontCapabilities &rGetImplFontCapabilities) const |