Skip to content

Commit b216138

Browse files
committedJul 24, 2016
Fix the build
1 parent 963ff92 commit b216138

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed
 

‎src/providers/arcgisrest/qgsamsprovider.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -437,8 +437,10 @@ QgsRasterIdentifyResult QgsAmsProvider::identify( const QgsPoint & thePoint, Qgs
437437
return QgsRasterIdentifyResult( theFormat, entries );
438438
}
439439

440-
void QgsAmsProvider::readBlock( int /*bandNo*/, const QgsRectangle & viewExtent, int width, int height, void *data )
440+
void QgsAmsProvider::readBlock( int /*bandNo*/, const QgsRectangle & viewExtent, int width, int height, void *data, QgsRasterBlockFeedback* feedback )
441441
{
442+
Q_UNUSED( feedback ); // TODO: make use of the feedback object
443+
442444
// TODO: optimize to avoid writing to QImage
443445
// returned image is actually mCachedImage, no need to delete
444446
QImage *image = draw( viewExtent, width, height );

‎src/providers/arcgisrest/qgsamsprovider.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ class QgsAmsProvider : public QgsRasterDataProvider
8787
QgsRasterIdentifyResult identify( const QgsPoint & thePoint, QgsRaster::IdentifyFormat theFormat, const QgsRectangle &theExtent = QgsRectangle(), int theWidth = 0, int theHeight = 0, int theDpi = 96 ) override;
8888

8989
protected:
90-
void readBlock( int bandNo, const QgsRectangle & viewExtent, int width, int height, void *data ) override;
90+
void readBlock( int bandNo, const QgsRectangle & viewExtent, int width, int height, void *data, QgsRasterBlockFeedback* feedback = nullptr ) override;
9191

9292
private:
9393
bool mValid;

‎src/providers/gdal/qgsgdalproviderbase.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,7 @@ GDALDatasetH QgsGdalProviderBase::gdalOpen( const char *pszFilename, GDALAccess
280280
return hDS;
281281
}
282282

283-
static int CPL_STDCALL _gdalProgressFnWithFeedback( double dfComplete, const char *pszMessage, void *pProgressArg )
283+
int CPL_STDCALL _gdalProgressFnWithFeedback( double dfComplete, const char *pszMessage, void *pProgressArg )
284284
{
285285
Q_UNUSED( dfComplete );
286286
Q_UNUSED( pszMessage );

0 commit comments

Comments
 (0)
Please sign in to comment.