summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2020-01-23 10:58:26 +0100
committerStephan Bergmann <sbergman@redhat.com>2020-01-23 13:17:32 +0100
commitffe8b5b3e32b6d10c35b20e4d19583e13b8cc511 (patch)
treef418daa2ab81f3ecae3fb13cab48347643f011bd /vcl
parent6f5332dab1517774ddd73c1568c51cb4814e5924 (diff)
Use properly typed vars to iterate over BitmapInfoAccess::Height/Width()
Change-Id: Ib7875c9a5ee31eadcaba7742174520a9c8fad557 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/87249 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'vcl')
-rw-r--r--vcl/source/gdi/bitmapex.cxx12
1 files changed, 6 insertions, 6 deletions
diff --git a/vcl/source/gdi/bitmapex.cxx b/vcl/source/gdi/bitmapex.cxx
index 2e767e39bc1e..6c1539bcb9bb 100644
--- a/vcl/source/gdi/bitmapex.cxx
+++ b/vcl/source/gdi/bitmapex.cxx
@@ -1088,11 +1088,11 @@ BitmapEx BitmapEx::ModifyBitmapEx(const basegfx::BColorModifierStack& rBColorMod
}
else if(ScanlineFormat::N24BitTcBgr == xContent->GetScanlineFormat())
{
- for(sal_uInt32 y(0); y < static_cast<sal_uInt32>(xContent->Height()); y++)
+ for(long y(0); y < xContent->Height(); y++)
{
Scanline pScan = xContent->GetScanline(y);
- for(sal_uInt32 x(0); x < static_cast<sal_uInt32>(xContent->Width()); x++)
+ for(long x(0); x < xContent->Width(); x++)
{
const basegfx::BColor aBSource(
*(pScan + 2)* fConvertColor,
@@ -1107,11 +1107,11 @@ BitmapEx BitmapEx::ModifyBitmapEx(const basegfx::BColorModifierStack& rBColorMod
}
else if(ScanlineFormat::N24BitTcRgb == xContent->GetScanlineFormat())
{
- for(sal_uInt32 y(0); y < static_cast<sal_uInt32>(xContent->Height()); y++)
+ for(long y(0); y < xContent->Height(); y++)
{
Scanline pScan = xContent->GetScanline(y);
- for(sal_uInt32 x(0); x < static_cast<sal_uInt32>(xContent->Width()); x++)
+ for(long x(0); x < xContent->Width(); x++)
{
const basegfx::BColor aBSource(
*pScan * fConvertColor,
@@ -1126,10 +1126,10 @@ BitmapEx BitmapEx::ModifyBitmapEx(const basegfx::BColorModifierStack& rBColorMod
}
else
{
- for(sal_uInt32 y(0); y < static_cast<sal_uInt32>(xContent->Height()); y++)
+ for(long y(0); y < xContent->Height(); y++)
{
Scanline pScanline = xContent->GetScanline( y );
- for(sal_uInt32 x(0); x < static_cast<sal_uInt32>(xContent->Width()); x++)
+ for(long x(0); x < xContent->Width(); x++)
{
const BitmapColor aBMCol(xContent->GetColor(y, x));
const basegfx::BColor aBSource(