summaryrefslogtreecommitdiff
path: root/src/location
diff options
context:
space:
mode:
authorAlex Blasche <alexander.blasche@digia.com>2014-05-14 14:34:34 +0200
committerThe Qt Project <gerrit-noreply@qt-project.org>2014-05-15 14:57:31 +0200
commitcb424d26eac75a14316726b4687758fd10c85563 (patch)
tree9d1b96301734b8c20652607823bb6dacb63afff8 /src/location
parent8922ae1ef4f0cb01c15632dfe19ed514e0d49dbe (diff)
downloadqtlocation-cb424d26eac75a14316726b4687758fd10c85563.tar.gz
Use QStringLiteral whereever possible
This replaces a lot of old QLatin1String cases Change-Id: I47aec711f5e00de68bde6c2c8ee09506f577cfd4 Reviewed-by: Kai Koehne <kai.koehne@digia.com>
Diffstat (limited to 'src/location')
-rw-r--r--src/location/maps/qgeocodereply.cpp1
-rw-r--r--src/location/maps/qgeomapdata.cpp2
-rw-r--r--src/location/maps/qgeomaptype.cpp2
-rw-r--r--src/location/maps/qgeoroutereply.cpp1
-rw-r--r--src/location/maps/qgeotiledmapreply.cpp1
5 files changed, 1 insertions, 6 deletions
diff --git a/src/location/maps/qgeocodereply.cpp b/src/location/maps/qgeocodereply.cpp
index 91738149..71d9e682 100644
--- a/src/location/maps/qgeocodereply.cpp
+++ b/src/location/maps/qgeocodereply.cpp
@@ -315,7 +315,6 @@ void QGeoCodeReply::setOffset(int offset)
QGeoCodeReplyPrivate::QGeoCodeReplyPrivate()
: error(QGeoCodeReply::NoError),
- errorString(QLatin1String("")),
isFinished(false),
limit(-1),
offset(0) {}
diff --git a/src/location/maps/qgeomapdata.cpp b/src/location/maps/qgeomapdata.cpp
index ce5579ba..a0f2560a 100644
--- a/src/location/maps/qgeomapdata.cpp
+++ b/src/location/maps/qgeomapdata.cpp
@@ -168,7 +168,7 @@ QGeoMapDataPrivate::QGeoMapDataPrivate(QGeoMappingManagerEngine *engine, QGeoMap
controller_(0),
activeMapType_(QGeoMapType())
{
- pluginString_ = engine_->managerName() + QLatin1String("_") + QString::number(engine_->managerVersion());
+ pluginString_ = engine_->managerName() + QLatin1Char('_') + QString::number(engine_->managerVersion());
}
QGeoMapDataPrivate::~QGeoMapDataPrivate()
diff --git a/src/location/maps/qgeomaptype.cpp b/src/location/maps/qgeomaptype.cpp
index 25466607..213b1b66 100644
--- a/src/location/maps/qgeomaptype.cpp
+++ b/src/location/maps/qgeomaptype.cpp
@@ -101,8 +101,6 @@ int QGeoMapType::mapId() const
QGeoMapTypePrivate::QGeoMapTypePrivate()
: style_(QGeoMapType::NoMap),
- name_(QLatin1String("")),
- description_(QLatin1String("")),
mobile_(false),
mapId_(0) {}
diff --git a/src/location/maps/qgeoroutereply.cpp b/src/location/maps/qgeoroutereply.cpp
index 2bdaef50..809d368b 100644
--- a/src/location/maps/qgeoroutereply.cpp
+++ b/src/location/maps/qgeoroutereply.cpp
@@ -261,7 +261,6 @@ void QGeoRouteReply::abort()
QGeoRouteReplyPrivate::QGeoRouteReplyPrivate(const QGeoRouteRequest &request)
: error(QGeoRouteReply::NoError),
- errorString(QLatin1String("")),
isFinished(false),
request(request) {}
diff --git a/src/location/maps/qgeotiledmapreply.cpp b/src/location/maps/qgeotiledmapreply.cpp
index 910f492a..4e4a8f61 100644
--- a/src/location/maps/qgeotiledmapreply.cpp
+++ b/src/location/maps/qgeotiledmapreply.cpp
@@ -306,7 +306,6 @@ void QGeoTiledMapReply::abort()
QGeoTiledMapReplyPrivate::QGeoTiledMapReplyPrivate(const QGeoTileSpec &spec)
: error(QGeoTiledMapReply::NoError),
- errorString(QLatin1String("")),
isFinished(false),
isCached(false),
spec(spec) {}