Skip to content

Commit

Permalink
Fix deprecated this capture
Browse files Browse the repository at this point in the history
elpaso committed Jan 21, 2025
1 parent eaf5e00 commit 2ac0a60
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/core/providers/ogr/qgsogrprovider.cpp
Original file line number Diff line number Diff line change
@@ -544,11 +544,11 @@ void QgsOgrProvider::setTransaction( QgsTransaction *transaction )
QgsDebugMsgLevel( QStringLiteral( "set transaction %1" ).arg( transaction != nullptr ), 2 );
// static_cast since layers cannot be added to a transaction of a non-matching provider
mTransaction = static_cast<QgsOgrTransaction *>( transaction );
connect( mTransaction, &QgsTransaction::afterRollback, this, [ = ]( )
connect( mTransaction, &QgsTransaction::afterRollback, this, [ this ]( )
{
mFieldsRequireReload = true;
} );
connect( mTransaction, &QgsTransaction::afterRollbackToSavepoint, this, [ = ]( const QString & )
connect( mTransaction, &QgsTransaction::afterRollbackToSavepoint, this, [ this ]( const QString & )
{
mFieldsRequireReload = true;
} );

0 comments on commit 2ac0a60

Please sign in to comment.