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/quartz/salgdi.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/quartz/salgdi.cxx')
-rw-r--r-- | vcl/quartz/salgdi.cxx | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/vcl/quartz/salgdi.cxx b/vcl/quartz/salgdi.cxx index 080cb1adaa11..cf906d32acf3 100644 --- a/vcl/quartz/salgdi.cxx +++ b/vcl/quartz/salgdi.cxx @@ -507,12 +507,11 @@ std::unique_ptr<GenericSalLayout> AquaSalGraphics::GetTextLayout(int nFallbackLe return std::make_unique<GenericSalLayout>(*mpTextStyle[nFallbackLevel]); } -const FontCharMapRef AquaSalGraphics::GetFontCharMap() const +FontCharMapRef AquaSalGraphics::GetFontCharMap() const { if (!mpTextStyle[0]) { - FontCharMapRef xFontCharMap( new FontCharMap() ); - return xFontCharMap; + return FontCharMapRef( new FontCharMap() ); } return static_cast<const CoreTextFontFace*>(mpTextStyle[0]->GetFontFace())->GetFontCharMap(); |