summaryrefslogtreecommitdiff
path: root/src/plugins/geoservices/mapbox/qplacesearchreplymapbox.cpp
diff options
context:
space:
mode:
authorThiago Macieira <thiago.macieira@intel.com>2020-04-21 09:05:24 -0700
committerThiago Macieira <thiago.macieira@intel.com>2020-05-06 18:32:42 -0700
commit3ca1149275e1e63e11c8d97f696e05bf73d2e076 (patch)
tree3d0641c703e6b249505e5c82a618025d244a58c6 /src/plugins/geoservices/mapbox/qplacesearchreplymapbox.cpp
parent8b0c9024b1eb9b6a4ad2e440d6e7856ca3a09e80 (diff)
downloadqtlocation-3ca1149275e1e63e11c8d97f696e05bf73d2e076.tar.gz
Fix warning about QString::SkipEmptyParts being deprecated
/home/tjmaciei/src/qt/qt5/qtlocation/src/plugins/geoservices/mapbox/qplacesearchreplymapbox.cpp:107:98: warning: ‘QString::SkipEmptyParts’ is deprecated [-Wdeprecated-declarations] Pick-To: 5.15 Change-Id: Ib3333a58f37746f3b935fffd1607e152af50f386 Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
Diffstat (limited to 'src/plugins/geoservices/mapbox/qplacesearchreplymapbox.cpp')
-rw-r--r--src/plugins/geoservices/mapbox/qplacesearchreplymapbox.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/geoservices/mapbox/qplacesearchreplymapbox.cpp b/src/plugins/geoservices/mapbox/qplacesearchreplymapbox.cpp
index 6d37d803..574ce44b 100644
--- a/src/plugins/geoservices/mapbox/qplacesearchreplymapbox.cpp
+++ b/src/plugins/geoservices/mapbox/qplacesearchreplymapbox.cpp
@@ -104,7 +104,7 @@ QPlaceResult parsePlaceResult(const QJsonObject &response, const QString &attrib
const QString categoryString = properties.value(QStringLiteral("category")).toString();
if (!categoryString.isEmpty()) {
QList<QPlaceCategory> categories;
- for (const QString &categoryId : categoryString.split(QStringLiteral(", "), QString::SkipEmptyParts)) {
+ for (const QString &categoryId : categoryString.split(QStringLiteral(", "), Qt::SkipEmptyParts)) {
QPlaceCategory category;
category.setName(QMapboxCommon::mapboxNameForCategory(categoryId));
category.setCategoryId(categoryId);