From 364c2838bae8ce7e58c92b348e83e24d03bc6334 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Sat, 30 Oct 2021 19:14:04 +0200 Subject: tools::Long->sal_Int32 in ImplExpand Change-Id: I9f57bf3b67b71aece6e595e83f70a3dff4ec3d71 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/124503 Tested-by: Jenkins Reviewed-by: Noel Grandin --- vcl/source/bitmap/impvect.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/vcl/source/bitmap/impvect.cxx b/vcl/source/bitmap/impvect.cxx index 0faac17e31dc..f41c3f72c8ec 100644 --- a/vcl/source/bitmap/impvect.cxx +++ b/vcl/source/bitmap/impvect.cxx @@ -40,7 +40,7 @@ #define VECT_POLY_OUTLINE_INNER 4UL #define VECT_POLY_OUTLINE_OUTER 8UL -static void VECT_MAP( const std::unique_ptr & pMapIn, const std::unique_ptr& pMapOut, tools::Long nVal ) +static void VECT_MAP( const std::unique_ptr & pMapIn, const std::unique_ptr& pMapOut, tools::Long nVal ) { pMapIn[nVal] = (nVal * 4) + 1; pMapOut[nVal] = pMapIn[nVal] + 5; @@ -788,8 +788,8 @@ void ImplExpand( std::optional& oMap, const BitmapReadAccess* pRAcc const tools::Long nNewWidth = ( nOldWidth << 2 ) + 4; const tools::Long nNewHeight = ( nOldHeight << 2 ) + 4; const BitmapColor aTest( pRAcc->GetBestMatchingColor( rColor ) ); - std::unique_ptr pMapIn(new tools::Long[ std::max( nOldWidth, nOldHeight ) ]); - std::unique_ptr pMapOut(new tools::Long[ std::max( nOldWidth, nOldHeight ) ]); + std::unique_ptr pMapIn(new sal_Int32[ std::max( nOldWidth, nOldHeight ) ]); + std::unique_ptr pMapOut(new sal_Int32[ std::max( nOldWidth, nOldHeight ) ]); tools::Long nX, nY, nTmpX, nTmpY; oMap.emplace( nNewWidth, nNewHeight ); -- cgit