summaryrefslogtreecommitdiff
path: root/vcl/quartz
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2018-09-18 10:39:46 +0200
committerStephan Bergmann <sbergman@redhat.com>2018-09-18 14:41:57 +0200
commite19a21add0d1f559edc28451eddeb11335cffd21 (patch)
treeaeace52937023e7a36b81f9203af8b072d88c1ca /vcl/quartz
parent738bcd238297966de197c02efc95554a08b16c9e (diff)
loplugin:external (macOS)
Change-Id: Ib06572a844d2999e9ecd91e26abd98ecec06a0ae Reviewed-on: https://gerrit.libreoffice.org/60665 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'vcl/quartz')
-rw-r--r--vcl/quartz/ctfonts.cxx2
-rw-r--r--vcl/quartz/salbmp.cxx2
2 files changed, 2 insertions, 2 deletions
diff --git a/vcl/quartz/ctfonts.cxx b/vcl/quartz/ctfonts.cxx
index 7894cfef0c8f..6ceec8a0295d 100644
--- a/vcl/quartz/ctfonts.cxx
+++ b/vcl/quartz/ctfonts.cxx
@@ -40,7 +40,7 @@
#include <sallayout.hxx>
#include <hb-coretext.h>
-inline double toRadian(int nDegree)
+static inline double toRadian(int nDegree)
{
return nDegree * (M_PI / 1800.0);
}
diff --git a/vcl/quartz/salbmp.cxx b/vcl/quartz/salbmp.cxx
index 3cde1f380955..e8df35c712bf 100644
--- a/vcl/quartz/salbmp.cxx
+++ b/vcl/quartz/salbmp.cxx
@@ -696,7 +696,7 @@ const aImplSalSysPalEntryAry[ 16 ] =
{ 0xFF, 0xFF, 0xFF }
};
-const BitmapPalette& GetDefaultPalette( int mnBits, bool bMonochrome )
+static const BitmapPalette& GetDefaultPalette( int mnBits, bool bMonochrome )
{
if( bMonochrome )
return Bitmap::GetGreyPalette( 1U << mnBits );