diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2020-11-12 15:13:56 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2020-11-15 19:03:09 +0100 |
commit | 7a83d0a268a348a86dd31acbac94872eab82f75b (patch) | |
tree | 4ccf33deb4cb99d05e9d9bd1e813fb7774d779b3 /vcl/quartz/salgdi.cxx | |
parent | 478ab71e97bc567ad2ed8a7b7d00ffd41d7c203b (diff) |
loplugin:toolslong in Library_vclplug_osx
Change-Id: I63892376154893a97e6b205b93c1682f66fd3064
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/105756
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'vcl/quartz/salgdi.cxx')
-rw-r--r-- | vcl/quartz/salgdi.cxx | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/vcl/quartz/salgdi.cxx b/vcl/quartz/salgdi.cxx index a0bb509dc2b6..704bba1fae9c 100644 --- a/vcl/quartz/salgdi.cxx +++ b/vcl/quartz/salgdi.cxx @@ -30,6 +30,7 @@ #include <osl/process.h> #include <rtl/bootstrap.h> #include <rtl/strbuf.hxx> +#include <tools/long.hxx> #include <comphelper/lok.hxx> #include <vcl/metric.hxx> @@ -769,12 +770,12 @@ void AquaSalGraphics::GetGlyphWidths( const PhysicalFontFace* pFontData, bool bV ::CloseTTFont( pSftFont ); } -const void* AquaSalGraphics::GetEmbedFontData(const PhysicalFontFace*, long* /*pDataLen*/) +const void* AquaSalGraphics::GetEmbedFontData(const PhysicalFontFace*, tools::Long* /*pDataLen*/) { return nullptr; } -void AquaSalGraphics::FreeEmbedFontData( const void* pData, long /*nDataLen*/ ) +void AquaSalGraphics::FreeEmbedFontData( const void* pData, tools::Long /*nDataLen*/ ) { // TODO: implementing this only makes sense when the implementation of // AquaSalGraphics::GetEmbedFontData() returns non-NULL @@ -803,10 +804,10 @@ void AquaSalGraphics::RefreshRect(float lX, float lY, float lWidth, float lHeigh // Rounding down x and width can accumulate a rounding error of up to 2 // The decrementing of x, the rounding error and the antialiasing border // require that the width and the height need to be increased by four - const tools::Rectangle aVclRect(Point(static_cast<long int>(lX-1), - static_cast<long int>(lY-1) ), - Size( static_cast<long int>(lWidth+4), - static_cast<long int>(lHeight+4) ) ); + const tools::Rectangle aVclRect(Point(static_cast<tools::Long>(lX-1), + static_cast<tools::Long>(lY-1) ), + Size( static_cast<tools::Long>(lWidth+4), + static_cast<tools::Long>(lHeight+4) ) ); mpFrame->maInvalidRect.Union( aVclRect ); } #else |