summaryrefslogtreecommitdiff
path: root/src/positioning/qgeosatelliteinfosource.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/positioning/qgeosatelliteinfosource.cpp')
-rw-r--r--src/positioning/qgeosatelliteinfosource.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/positioning/qgeosatelliteinfosource.cpp b/src/positioning/qgeosatelliteinfosource.cpp
index da6eb8a0..e8a32d59 100644
--- a/src/positioning/qgeosatelliteinfosource.cpp
+++ b/src/positioning/qgeosatelliteinfosource.cpp
@@ -219,11 +219,11 @@ QGeoSatelliteInfoSource *QGeoSatelliteInfoSource::createSource(const QString &so
QStringList QGeoSatelliteInfoSource::availableSources()
{
QStringList plugins;
- QHash<QString, QJsonObject> meta = QGeoPositionInfoSourcePrivate::plugins();
- foreach (const QString &name, meta.keys()) {
- if (meta.value(name).value(QStringLiteral("Satellite")).isBool()
- && meta.value(name).value(QStringLiteral("Satellite")).toBool()) {
- plugins << name;
+ const QHash<QString, QJsonObject> meta = QGeoPositionInfoSourcePrivate::plugins();
+ for (auto it = meta.cbegin(), end = meta.cend(); it != end; ++it) {
+ if (it.value().value(QStringLiteral("Satellite")).isBool()
+ && it.value().value(QStringLiteral("Satellite")).toBool()) {
+ plugins << it.key();
}
}