Skip to content

Commit

Permalink
Fix indentation
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Nov 4, 2021
1 parent 4966dff commit ac03801
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 5 deletions.
2 changes: 0 additions & 2 deletions src/3d/terrain/qgsdemterraintileloader_p.cpp
Expand Up @@ -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() );
Expand Down
2 changes: 0 additions & 2 deletions src/analysis/vector/geometry_checker/qgsgeometrychecker.cpp
Expand Up @@ -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;
Expand Down
1 change: 0 additions & 1 deletion src/app/qgsgeometryvalidationservice.cpp
Expand Up @@ -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 );
Expand Down

0 comments on commit ac03801

Please sign in to comment.