Skip to content
Permalink
Browse files

replace old-style cast by reinterpret_cast

  • Loading branch information
3nids committed Oct 9, 2018
1 parent 1a5a23d commit 159eb0950536388a8e307595d2ca9d9c6f541788
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/gui/qgshighlight.cpp
@@ -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] );

0 comments on commit 159eb09

Please sign in to comment.
You can’t perform that action at this time.