Skip to content
Permalink
Browse files
Fix indentation
  • Loading branch information
nyalldawson authored and github-actions committed Nov 4, 2021
1 parent d21e015 commit 8cb0e7a9fce183ffafe4c44c808b44e4cf637110
@@ -229,11 +229,9 @@ int QgsDemHeightMapGenerator::render( const QgsChunkNodeId &nodeId )
jd.tileId = nodeId;
jd.extent = extent;
jd.timer.start();

QFutureWatcher<QByteArray> *fw = new QFutureWatcher<QByteArray>( nullptr );
connect( fw, &QFutureWatcher<QByteArray>::finished, this, &QgsDemHeightMapGenerator::onFutureFinished );
connect( fw, &QFutureWatcher<QByteArray>::finished, fw, &QObject::deleteLater );

// make a clone of the data provider so it is safe to use in worker thread
if ( mDtm )
jd.future = QtConcurrent::run( _readDtmData, mClonedProvider, extent, mResolution, mTilingScheme.crs() );
@@ -84,14 +84,12 @@ QFuture<void> QgsGeometryChecker::execute( int *totalSteps )
}
QTimer *timer = new QTimer();
connect( timer, &QTimer::timeout, this, &QgsGeometryChecker::emitProgressValue );

QFutureWatcher<void> *watcher = new QFutureWatcher<void>();
connect( watcher, &QFutureWatcherBase::finished, timer, &QObject::deleteLater );
connect( watcher, &QFutureWatcherBase::finished, watcher, &QObject::deleteLater );

QFuture<void> future = QtConcurrent::map( mChecks, RunCheckWrapper( this ) );
watcher->setFuture( future );

timer->start( 500 );

return future;
@@ -457,7 +457,6 @@ void QgsGeometryValidationService::triggerTopologyChecks( QgsVectorLayer *layer,
mLayerChecks[layer].topologyCheckFeedbacks = feedbacks.values();

QFutureWatcher<void> *futureWatcher = new QFutureWatcher<void>();

connect( futureWatcher, &QFutureWatcherBase::finished, this, [&allErrors, layer, feedbacks, futureWatcher, stopEditing, this]()
{
QgsReadWriteLocker errorLocker( mTopologyCheckLock, QgsReadWriteLocker::Read );

0 comments on commit 8cb0e7a

Please sign in to comment.