diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2019-12-06 16:50:38 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2019-12-06 19:21:21 +0100 |
commit | b1acb9c62701d8f09fafdf5b7c2b690249a277b8 (patch) | |
tree | 09816a74d80cb004f6074da763b725f53672390a /vcl/quartz | |
parent | 0a803c0a41f46be4019ddd2768b4be5669b7ab59 (diff) |
loplugin:external (macOS)
* OldEntry in fpicker/source/aqua/resourceprovider.mm was apparently unused ever
since it got introduced with 00657aef09d854c74fb426a935a3e8b1fc390bb0
"migrate to boost::gettext"
* impl_throwError is used from multiple TU,
connectivity/source/drivers/macab/MacabStatement.cxx just missed the relevant
#include
Change-Id: Iba131da57aa20085bb1c634ba9a3a59566070abd
Reviewed-on: https://gerrit.libreoffice.org/84653
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'vcl/quartz')
-rw-r--r-- | vcl/quartz/ctfonts.cxx | 4 | ||||
-rw-r--r-- | vcl/quartz/salbmp.cxx | 9 | ||||
-rw-r--r-- | vcl/quartz/salgdi.cxx | 4 |
3 files changed, 15 insertions, 2 deletions
diff --git a/vcl/quartz/ctfonts.cxx b/vcl/quartz/ctfonts.cxx index 252720a0aa4e..d100e03b8910 100644 --- a/vcl/quartz/ctfonts.cxx +++ b/vcl/quartz/ctfonts.cxx @@ -143,9 +143,13 @@ bool CoreTextStyle::ImplGetGlyphBoundRect(sal_GlyphId nId, tools::Rectangle& rRe return true; } +namespace { + // callbacks from CTFontCreatePathForGlyph+CGPathApply for GetGlyphOutline() struct GgoData { basegfx::B2DPolygon maPolygon; basegfx::B2DPolyPolygon* mpPolyPoly; }; +} + static void MyCGPathApplierFunc( void* pData, const CGPathElement* pElement ) { basegfx::B2DPolygon& rPolygon = static_cast<GgoData*>(pData)->maPolygon; diff --git a/vcl/quartz/salbmp.cxx b/vcl/quartz/salbmp.cxx index 117c038c844e..2f6820b2877e 100644 --- a/vcl/quartz/salbmp.cxx +++ b/vcl/quartz/salbmp.cxx @@ -599,13 +599,18 @@ sal_uInt16 QuartzSalBitmap::GetBitCount() const return mnBits; } -static struct pal_entry +namespace { + +struct pal_entry { sal_uInt8 mnRed; sal_uInt8 mnGreen; sal_uInt8 mnBlue; +}; + } -const aImplSalSysPalEntryAry[ 16 ] = + +static pal_entry const aImplSalSysPalEntryAry[ 16 ] = { { 0, 0, 0 }, { 0, 0, 0x80 }, diff --git a/vcl/quartz/salgdi.cxx b/vcl/quartz/salgdi.cxx index b6df53319e28..000141123d7e 100644 --- a/vcl/quartz/salgdi.cxx +++ b/vcl/quartz/salgdi.cxx @@ -57,6 +57,8 @@ using namespace vcl; +namespace { + class CoreTextGlyphFallbackSubstititution : public ImplGlyphFallbackFontSubstitution { @@ -64,6 +66,8 @@ public: bool FindFontSubstitute(FontSelectPattern&, LogicalFontInstance* pLogicalFont, OUString&) const override; }; +} + bool CoreTextGlyphFallbackSubstititution::FindFontSubstitute(FontSelectPattern& rPattern, LogicalFontInstance* pLogicalFont, OUString& rMissingChars) const { |