Skip to content

Commit 693455b

Browse files
authored
Use const cache
1 parent c5825aa commit 693455b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/gui/editorwidgets/qgsvaluerelationwidgetwrapper.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -228,9 +228,9 @@ void QgsValueRelationWidgetWrapper::setFeature( const QgsFeature &feature )
228228
{
229229
// This is deferred because at the time the feature is set in one widget it is not
230230
// set in the next, which is typically the "down" in a drill-down
231-
QTimer::singleShot( 0, [ = ]
231+
QTimer::singleShot( 0, [ this, &cache = qgis::as_const( mCache ) ]
232232
{
233-
setValue( mCache.first().key );
233+
setValue( cache.first().key );
234234
} );
235235
}
236236
}

0 commit comments

Comments
 (0)