summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/plugins/geoservices/nokia/qplacemanagerengine_nokiav2.cpp2
-rw-r--r--src/plugins/geoservices/osm/qplacemanagerengineosm.cpp10
2 files changed, 6 insertions, 6 deletions
diff --git a/src/plugins/geoservices/nokia/qplacemanagerengine_nokiav2.cpp b/src/plugins/geoservices/nokia/qplacemanagerengine_nokiav2.cpp
index c5c05a2e..c489325d 100644
--- a/src/plugins/geoservices/nokia/qplacemanagerengine_nokiav2.cpp
+++ b/src/plugins/geoservices/nokia/qplacemanagerengine_nokiav2.cpp
@@ -696,7 +696,7 @@ QPlaceIcon QPlaceManagerEngineNokiaV2::icon(const QString &remotePath,
QString iconPrefix;
QString nokiaIcon;
- if (match.hasMatch() && !match.capturedRef(1).isEmpty() && !match.capturedRef(2).isEmpty()) {
+ if (match.hasMatch() && !match.capturedView(1).isEmpty() && !match.capturedView(2).isEmpty()) {
iconPrefix = match.captured(1);
nokiaIcon = match.captured(2);
diff --git a/src/plugins/geoservices/osm/qplacemanagerengineosm.cpp b/src/plugins/geoservices/osm/qplacemanagerengineosm.cpp
index d6344989..93b3ce59 100644
--- a/src/plugins/geoservices/osm/qplacemanagerengineosm.cpp
+++ b/src/plugins/geoservices/osm/qplacemanagerengineosm.cpp
@@ -274,11 +274,11 @@ void QPlaceManagerEngineOsm::categoryReplyFinished()
QRegularExpressionMatchIterator i = regex.globalMatch(page);
while (i.hasNext()) {
QRegularExpressionMatch match = i.next();
- QString name = match.capturedRef(1).toString();
- QString tagKey = match.capturedRef(2).toString();
- QString tagValue = match.capturedRef(3).toString();
- QString op = match.capturedRef(4).toString();
- QString plural = match.capturedRef(5).toString();
+ QString name = match.capturedView(1).toString();
+ QString tagKey = match.capturedView(2).toString();
+ QString tagValue = match.capturedView(3).toString();
+ QString op = match.capturedView(4).toString();
+ QString plural = match.capturedView(5).toString();
// Only interested in any operator plural forms
if (op != QLatin1String("-") || plural != QLatin1String("Y"))