Skip to content

Commit

Permalink
explicitly force std::as_const
Browse files Browse the repository at this point in the history
Co-authored-by: Alessandro Pasotti <elpaso@itopen.it>
  • Loading branch information
2 people authored and nyalldawson committed Oct 12, 2024
1 parent cc20aa1 commit 8191f29
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/gui/qgsattributeform.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1039,7 +1039,7 @@ void QgsAttributeForm::onAttributeChanged( const QVariant &value, const QVariant
// Update other widgets pointing to the same field, required to happen now to insure
// currentFormValuesFeature() gets the right value when processing constraints
const QList<QgsAttributeFormEditorWidget *> formEditorWidgets = mFormEditorWidgets.values( eww->fieldIdx() );
for ( QgsAttributeFormEditorWidget *formEditorWidget : formEditorWidgets )
for ( QgsAttributeFormEditorWidget *formEditorWidget : std::as_const( formEditorWidgets ) )
{
if ( formEditorWidget->editorWidget() == eww )
continue;
Expand Down

0 comments on commit 8191f29

Please sign in to comment.