Skip to content

Commit

Permalink
replace old-style cast by reinterpret_cast
Browse files Browse the repository at this point in the history
  • Loading branch information
3nids committed Oct 9, 2018
1 parent 1a5a23d commit 159eb09
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/gui/qgshighlight.cpp
Expand Up @@ -362,7 +362,7 @@ void QgsHighlight::paint( QPainter *p )
QRgb *line = nullptr;
for ( int r = 0; r < image.height(); r++ )
{
line = ( QRgb * )image.scanLine( r );
line = reinterpret_cast<QRgb *>( image.scanLine( r ) );
for ( int c = 0; c < image.width(); c++ )
{
int alpha = qAlpha( line[c] );
Expand Down

0 comments on commit 159eb09

Please sign in to comment.