summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEdward Welbourne <edward.welbourne@qt.io>2020-07-24 15:04:54 +0200
committerEdward Welbourne <edward.welbourne@qt.io>2020-07-27 15:28:43 +0200
commitf94b64cb4e4f8ffe316272cd39789ba4c7d220e7 (patch)
tree0e46c77967eb3c6702336e623309447de8b54069
parentf3a34ce8890c68c04212eafa0ae2c9eeeb60b555 (diff)
downloadqtlocation-f94b64cb4e4f8ffe316272cd39789ba4c7d220e7.tar.gz
Convert QRegExp to QRegularExpression
Change-Id: I0f6918b18816975b91c28d3426c63d9a399aa274 Reviewed-by: Sona Kurazyan <sona.kurazyan@qt.io>
-rw-r--r--src/location/labs/qgeojson.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/location/labs/qgeojson.cpp b/src/location/labs/qgeojson.cpp
index 151091ca..bdd4eacb 100644
--- a/src/location/labs/qgeojson.cpp
+++ b/src/location/labs/qgeojson.cpp
@@ -1,6 +1,6 @@
/****************************************************************************
**
-** Copyright (C) 2018 The Qt Company Ltd.
+** Copyright (C) 2020 The Qt Company Ltd.
** Copyright (C) 2018 Julian Sherollari <jdotsh@gmail.com>
** Contact: https://www.qt.io/licensing/
**
@@ -1194,12 +1194,12 @@ QString printQvariant(const QVariant v, int tabs = 0) {
// Handle type first, to easy reading
if (map.contains(QStringLiteral("type"))) {
stream << sTabs << sTab << QStringLiteral("type") << " : "
- << printQvariant(map[QStringLiteral("type")], tabs + 1).remove(QRegExp(QStringLiteral("^[ ]*")));;
+ << printQvariant(map[QStringLiteral("type")], tabs + 1).remove(QRegularExpression(QStringLiteral("^[ ]*")));;
}
for (QVariantMap::const_iterator iter = map.begin(); iter != map.end(); ++iter) {
if (iter.key() == QStringLiteral("type"))
continue;
- stream << sTabs << sTab << iter.key() << " : " << printQvariant(iter.value(), tabs + 1).remove(QRegExp(QStringLiteral("^[ ]*")));;
+ stream << sTabs << sTab << iter.key() << " : " << printQvariant(iter.value(), tabs + 1).remove(QRegularExpression(QStringLiteral("^[ ]*")));;
}
}
for (int i = 0; i < l.size(); ++i)