Skip to content

Commit 29cbb23

Browse files
committedNov 5, 2018
Take context by copy in lambda
1 parent 661aad7 commit 29cbb23

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎src/core/qgsproject.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -369,14 +369,14 @@ QgsProject::QgsProject( QObject *parent )
369369
if ( QgsApplication::instance() )
370370
connect( QgsApplication::instance(), &QgsApplication::requestForTranslatableObjects, this, &QgsProject::registerTranslatableObjects );
371371
connect( mLayerStore.get(), static_cast<void ( QgsMapLayerStore::* )( const QList<QgsMapLayer *> & )>( &QgsMapLayerStore::layersWillBeRemoved ),
372-
[ & ]( const QList<QgsMapLayer *> &layers )
372+
[ = ]( const QList<QgsMapLayer *> &layers )
373373
{
374374
for ( const auto &layer : layers )
375375
disconnect( layer, &QgsMapLayer::dataSourceChanged, mRelationManager, &QgsRelationManager::updateRelationsStatus );
376376
}
377377
);
378378
connect( mLayerStore.get(), static_cast<void ( QgsMapLayerStore::* )( const QList<QgsMapLayer *> & )>( &QgsMapLayerStore::layersAdded ),
379-
[ & ]( const QList<QgsMapLayer *> &layers )
379+
[ = ]( const QList<QgsMapLayer *> &layers )
380380
{
381381
for ( const auto &layer : layers )
382382
connect( layer, &QgsMapLayer::dataSourceChanged, mRelationManager, &QgsRelationManager::updateRelationsStatus );

0 commit comments

Comments
 (0)
Please sign in to comment.