Skip to content

Commit

Permalink
Fix CI warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
nirvn committed Nov 24, 2024
1 parent 3ddd1ac commit a81f884
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/core/locator/qfieldlocatorfilter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -117,10 +117,10 @@ void QFieldLocatorFilter::prepareResult( const QVariant &details )
result.group = detailsMap.value( QStringLiteral( "group" ), QString() ).toString();
result.groupScore = detailsMap.value( QStringLiteral( "groupScore" ), 0.5 ).toDouble();
const QVariantList actions = detailsMap.value( QStringLiteral( "actions" ) ).toList();
for ( const QVariant action : actions )
for ( const QVariant &action : actions )
{
const QVariantMap actionMap = action.toMap();
result.actions << QgsLocatorResult::ResultAction( actionMap.value( "id", 0 ).toInt(), actionMap.value( "name", QString() ).toString(), actionMap.value( "icon", QString() ).toString() );
result.actions << QgsLocatorResult::ResultAction( actionMap.value( QStringLiteral( "id" ), 0 ).toInt(), actionMap.value( QStringLiteral( "name" ), QString() ).toString(), actionMap.value( QStringLiteral( "icon" ), QString() ).toString() );
}
emit resultFetched( result );
}
Expand Down
2 changes: 1 addition & 1 deletion src/qml/LocatorSettings.qml
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ Popup {
indicator.implicitHeight: 24
indicator.implicitWidth: 24
checked: Default ? true : false
onCheckedChanged: Default = checked
onClicked: Default = checked
}
}
}
Expand Down

0 comments on commit a81f884

Please sign in to comment.