summaryrefslogtreecommitdiffstats
path: root/src/core/location_provider_qt.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/location_provider_qt.cpp')
-rw-r--r--src/core/location_provider_qt.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/core/location_provider_qt.cpp b/src/core/location_provider_qt.cpp
index d0b783b20..d5a7f1297 100644
--- a/src/core/location_provider_qt.cpp
+++ b/src/core/location_provider_qt.cpp
@@ -52,8 +52,8 @@
#include "base/memory/weak_ptr.h"
#include "base/message_loop/message_loop.h"
#include "content/public/browser/browser_thread.h"
-#include "device/geolocation/geolocation_provider.h"
-#include "device/geolocation/geolocation_provider_impl.h"
+#include "services/device/geolocation/geolocation_provider.h"
+#include "services/device/geolocation/geolocation_provider_impl.h"
namespace QtWebEngineCore {
@@ -116,7 +116,8 @@ void QtPositioningHelper::start(bool highAccuracy)
// Find high accuracy source if the default source is not already one.
if (highAccuracy && !isHighAccuracySource(m_positionInfoSource)) {
- Q_FOREACH (const QString &name, QGeoPositionInfoSource::availableSources()) {
+ const QStringList availableSources = QGeoPositionInfoSource::availableSources();
+ for (const QString &name : availableSources) {
if (name == m_positionInfoSource->sourceName())
continue;
QGeoPositionInfoSource *source = QGeoPositionInfoSource::createSource(name, this);