Skip to content
Permalink
Browse files

Fix deprecation warnings for providers

  • Loading branch information
pblottiere authored and nyalldawson committed Jan 29, 2020
1 parent f23478f commit 5fbae53e0d1fa1e1353f012940f60a882db49a57
@@ -29,6 +29,7 @@
#include <QPushButton>
#include <QStyle>
#include <QTimer>
#include <QElapsedTimer>

#include <sqlite3.h>

@@ -712,7 +713,7 @@ bool QgsBackgroundCachedFeatureIterator::fetchFeature( QgsFeature &f )
// - or new features to be notified
// - or end of download being notified
// - or interruption checker to notify cancellation
QTime timeRequestTimeout;
QElapsedTimer timeRequestTimeout;
const int requestTimeout = mRequest.timeout();
if ( requestTimeout > 0 )
timeRequestTimeout.start();
@@ -725,7 +726,7 @@ bool QgsBackgroundCachedFeatureIterator::fetchFeature( QgsFeature &f )
}
const int delayCheckInterruption = 50;
const int timeout = ( requestTimeout > 0 ) ?
std::min( requestTimeout - timeRequestTimeout.elapsed(), delayCheckInterruption ) :
std::min( requestTimeout - (int) timeRequestTimeout.elapsed(), delayCheckInterruption ) :
delayCheckInterruption;
if ( timeout < 0 )
{
@@ -814,7 +814,7 @@ QImage *QgsWmsProvider::draw( QgsRectangle const &viewExtent, int pixelWidth, in
mbtilesReader->open();
}

QTime t;
QElapsedTimer t;
t.start();
TileRequests requestsFinal;
const auto constRequests = requests;

0 comments on commit 5fbae53

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