From 53e720708b9d027a7df9908c75b1b82c8aca3c6a Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Tue, 4 May 2021 18:55:25 +0200 Subject: sal_uLong->sal_Int32 in Bitmap Change-Id: I267fbdb8946d307440cb675f6ff985bf58db5e4c Reviewed-on: https://gerrit.libreoffice.org/c/core/+/115108 Tested-by: Jenkins Reviewed-by: Noel Grandin --- vcl/source/bitmap/BitmapEx.cxx | 6 +++--- vcl/source/bitmap/BitmapWriteAccess.cxx | 2 +- vcl/source/bitmap/bitmap.cxx | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) (limited to 'vcl/source/bitmap') diff --git a/vcl/source/bitmap/BitmapEx.cxx b/vcl/source/bitmap/BitmapEx.cxx index 90c0ca8a47b5..2c56ab44b6a0 100644 --- a/vcl/source/bitmap/BitmapEx.cxx +++ b/vcl/source/bitmap/BitmapEx.cxx @@ -217,9 +217,9 @@ AlphaMask BitmapEx::GetAlpha() const return AlphaMask(maAlphaMask); } -sal_uLong BitmapEx::GetSizeBytes() const +sal_Int64 BitmapEx::GetSizeBytes() const { - sal_uLong nSizeBytes = maBitmap.GetSizeBytes(); + sal_Int64 nSizeBytes = maBitmap.GetSizeBytes(); if( !maAlphaMask.IsEmpty() ) nSizeBytes += maAlphaMask.GetSizeBytes(); @@ -376,7 +376,7 @@ bool BitmapEx::Convert( BmpConversion eConversion ) return !maBitmap.IsEmpty() && maBitmap.Convert( eConversion ); } -void BitmapEx::Expand( sal_uLong nDX, sal_uLong nDY, bool bExpandTransparent ) +void BitmapEx::Expand( sal_Int32 nDX, sal_Int32 nDY, bool bExpandTransparent ) { bool bRet = false; diff --git a/vcl/source/bitmap/BitmapWriteAccess.cxx b/vcl/source/bitmap/BitmapWriteAccess.cxx index d30477b9f257..c7fb31cc1406 100644 --- a/vcl/source/bitmap/BitmapWriteAccess.cxx +++ b/vcl/source/bitmap/BitmapWriteAccess.cxx @@ -67,7 +67,7 @@ void BitmapWriteAccess::CopyScanline(tools::Long nY, ConstScanline aSrcScanline, || (!HasPalette() && nFormat > ScanlineFormat::N8BitPal), "No copying possible between palette and non palette scanlines!"); - const sal_uLong nCount = std::min(GetScanlineSize(), nSrcScanlineSize); + const sal_uInt32 nCount = std::min(GetScanlineSize(), nSrcScanlineSize); if (!nCount) return; diff --git a/vcl/source/bitmap/bitmap.cxx b/vcl/source/bitmap/bitmap.cxx index 99b8d10e9ef7..e093e0afabb5 100644 --- a/vcl/source/bitmap/bitmap.cxx +++ b/vcl/source/bitmap/bitmap.cxx @@ -850,7 +850,7 @@ bool Bitmap::CopyPixel_AlphaOptimized( const tools::Rectangle& rRectDst, const t } -bool Bitmap::Expand( sal_uLong nDX, sal_uLong nDY, const Color* pInitColor ) +bool Bitmap::Expand( sal_Int32 nDX, sal_Int32 nDY, const Color* pInitColor ) { bool bRet = false; -- cgit