Skip to content

Commit 8191f29

Browse files
troopa81elpaso
authored andcommitted
explicitly force std::as_const
Co-authored-by: Alessandro Pasotti <[email protected]>
1 parent cc20aa1 commit 8191f29

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/gui/qgsattributeform.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -1039,7 +1039,7 @@ void QgsAttributeForm::onAttributeChanged( const QVariant &value, const QVariant
10391039
// Update other widgets pointing to the same field, required to happen now to insure
10401040
// currentFormValuesFeature() gets the right value when processing constraints
10411041
const QList<QgsAttributeFormEditorWidget *> formEditorWidgets = mFormEditorWidgets.values( eww->fieldIdx() );
1042-
for ( QgsAttributeFormEditorWidget *formEditorWidget : formEditorWidgets )
1042+
for ( QgsAttributeFormEditorWidget *formEditorWidget : std::as_const( formEditorWidgets ) )
10431043
{
10441044
if ( formEditorWidget->editorWidget() == eww )
10451045
continue;

0 commit comments

Comments
 (0)