Skip to content

Commit 159eb09

Browse files
committed
replace old-style cast by reinterpret_cast
1 parent 1a5a23d commit 159eb09

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/gui/qgshighlight.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -362,7 +362,7 @@ void QgsHighlight::paint( QPainter *p )
362362
QRgb *line = nullptr;
363363
for ( int r = 0; r < image.height(); r++ )
364364
{
365-
line = ( QRgb * )image.scanLine( r );
365+
line = reinterpret_cast<QRgb *>( image.scanLine( r ) );
366366
for ( int c = 0; c < image.width(); c++ )
367367
{
368368
int alpha = qAlpha( line[c] );

0 commit comments

Comments
 (0)