summaryrefslogtreecommitdiff
path: root/canvas
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2018-01-15 09:07:10 +0100
committerStephan Bergmann <sbergman@redhat.com>2018-01-15 09:07:10 +0100
commit0cad6d02070ebab995611e8c8125e11e3f7c4836 (patch)
treebd0d6e7148c875a6b416bbd372d114a91eae07ca /canvas
parent2b9975f6cdc81c37d896a234c9fc69bbc8535cc0 (diff)
More loplugin:cstylecast: canvas
Change-Id: I16ce5e190febb7a180b53c62344915fefaa26b4c
Diffstat (limited to 'canvas')
-rw-r--r--canvas/source/cairo/cairo_canvashelper.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/canvas/source/cairo/cairo_canvashelper.cxx b/canvas/source/cairo/cairo_canvashelper.cxx
index 622985f11b5c..a25dac85acc6 100644
--- a/canvas/source/cairo/cairo_canvashelper.cxx
+++ b/canvas/source/cairo/cairo_canvashelper.cxx
@@ -379,7 +379,7 @@ namespace cairocanvas
}
break;
default:
- SAL_INFO( "canvas.cairo", "fallback to GetColor for alpha - slow, format: " << (int)pAlphaReadAcc->GetScanlineFormat() );
+ SAL_INFO( "canvas.cairo", "fallback to GetColor for alpha - slow, format: " << static_cast<int>(pAlphaReadAcc->GetScanlineFormat()) );
for( nX = 0; nX < nWidth; nX++ )
{
nAlpha = data[ nOff ] = 255 - pAlphaReadAcc->GetColor( nY, nX ).GetIndex();
@@ -603,7 +603,7 @@ namespace cairocanvas
}
break;
default:
- SAL_INFO( "canvas.cairo", "fallback to GetColor - slow, format: " << (int)pBitmapReadAcc->GetScanlineFormat() );
+ SAL_INFO( "canvas.cairo", "fallback to GetColor - slow, format: " << static_cast<int>(pBitmapReadAcc->GetScanlineFormat()) );
if( pAlphaReadAcc )
if( readAlpha( pAlphaReadAcc, nY, nWidth, data, nOff ) )