Skip to content

Commit

Permalink
Fix some more warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
elpaso committed Jan 10, 2020
1 parent e4c687d commit 7f37865
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions src/providers/postgres/raster/qgspostgresrasterprovider.cpp
Expand Up @@ -458,11 +458,11 @@ bool QgsPostgresRasterProvider::readBlock( int bandNo, const QgsRectangle &viewE
GF_Write,
xOff,
yOff,
tile.width,
tile.height,
static_cast<int>( tile.width ),
static_cast<int>( tile.height ),
( void * )( tile.data.constData() ), // old-style because of const
tile.width,
tile.height,
static_cast<int>( tile.width ),
static_cast<int>( tile.height ),
gdalDataType,
0,
0 );
Expand Down Expand Up @@ -1398,7 +1398,7 @@ int QgsPostgresRasterProvider::xBlockSize() const
}
else
{
return mWidth;
return static_cast<int>( mWidth );
}
}

Expand All @@ -1410,12 +1410,13 @@ int QgsPostgresRasterProvider::yBlockSize() const
}
else
{
return mHeight;
return static_cast<int>( mHeight );
}
}

QgsRasterBandStats QgsPostgresRasterProvider::bandStatistics( int bandNo, int stats, const QgsRectangle &extent, int sampleSize, QgsRasterBlockFeedback *feedback )
{
Q_UNUSED( feedback )
QgsRasterBandStats rasterBandStats;
const auto constMStatistics = mStatistics;
initStatistics( rasterBandStats, bandNo, stats, extent, sampleSize );
Expand Down

0 comments on commit 7f37865

Please sign in to comment.