mirror of
https://github.com/qgis/QGIS.git
synced 2025-03-06 00:05:02 -05:00
Fix some more warnings
This commit is contained in:
parent
e4c687d8dc
commit
7f37865c22
@ -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 );
|
||||
@ -1398,7 +1398,7 @@ int QgsPostgresRasterProvider::xBlockSize() const
|
||||
}
|
||||
else
|
||||
{
|
||||
return mWidth;
|
||||
return static_cast<int>( mWidth );
|
||||
}
|
||||
}
|
||||
|
||||
@ -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 );
|
||||
|
Loading…
x
Reference in New Issue
Block a user