Skip to content

Commit 740f671

Browse files
m-kuhnsignedav
andcommitted
Update src/gui/editorwidgets/qgsvaluerelationwidgetwrapper.cpp
Co-Authored-By: signedav <david@opengis.ch>
1 parent 036c35a commit 740f671

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/gui/editorwidgets/qgsvaluerelationwidgetwrapper.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ QVariant QgsValueRelationWidgetWrapper::value() const
7474
{
7575
QVariantList vl;
7676
//store as QVariantList because it's json
77-
foreach ( QString s, selection )
77+
for ( const QString &s, qgis::as_const( selection ) )
7878
{
7979
vl << s;
8080
}

0 commit comments

Comments
 (0)