summaryrefslogtreecommitdiff
path: root/src/plugins/geoservices/nokia/qgeotilefetcher_nokia.cpp
diff options
context:
space:
mode:
authorThiago Macieira <thiago.macieira@intel.com>2012-05-03 16:52:19 +0200
committerQt by Nokia <qt-info@nokia.com>2012-05-08 02:23:42 +0200
commitf00ee657a579e6a0da34492c221c9ca2059a2db0 (patch)
treebbf9d132f1b89e4c48a4388a0e8ca845f90eaf78 /src/plugins/geoservices/nokia/qgeotilefetcher_nokia.cpp
parent88b6015918d6b113a45ea514bbd8083873609486 (diff)
downloadqtlocation-f00ee657a579e6a0da34492c221c9ca2059a2db0.tar.gz
Change uses of {to,from}Ascii to {to,from}Latin1
This operation should be a no-op anyway, since at this point in time, the fromAscii and toAscii functions simply call their fromLatin1 and toLatin1 counterparts. Task-number: QTBUG-21872 Change-Id: I2e16486d80df6257ab88dc8c3b5d9dd497a19708 Reviewed-by: Aaron McCarthy <aaron.mccarthy@nokia.com>
Diffstat (limited to 'src/plugins/geoservices/nokia/qgeotilefetcher_nokia.cpp')
-rw-r--r--src/plugins/geoservices/nokia/qgeotilefetcher_nokia.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/geoservices/nokia/qgeotilefetcher_nokia.cpp b/src/plugins/geoservices/nokia/qgeotilefetcher_nokia.cpp
index 09e72343..c8ff5ad6 100644
--- a/src/plugins/geoservices/nokia/qgeotilefetcher_nokia.cpp
+++ b/src/plugins/geoservices/nokia/qgeotilefetcher_nokia.cpp
@@ -137,7 +137,7 @@ QGeoTiledMapReply* QGeoTileFetcherNokia::getTileImage(const QGeoTileSpec &spec)
QString QGeoTileFetcherNokia::getRequestString(const QGeoTileSpec &spec)
{
- const char subdomain = m_maxSubdomains ? m_firstSubdomain.toAscii() +
+ const char subdomain = m_maxSubdomains ? m_firstSubdomain.toLatin1() +
qrand() % m_maxSubdomains : 0;
static const QString http("http://");
static const QString path("/maptiler/v2/maptile/newest/");
@@ -258,7 +258,7 @@ void QGeoTileFetcherNokia::setHost(const QString &host)
if (host.length() > 4 && host.at(1) == QChar('-') && host.at(3) == QChar('.')) {
QString realHost = host.right(host.length() - 4);
m_firstSubdomain = host.at(0);
- m_maxSubdomains = host.at(2).toAscii() - host.at(0).toAscii() + 1;
+ m_maxSubdomains = host.at(2).toLatin1() - host.at(0).toLatin1() + 1;
m_host = realHost;
} else {
m_host = host;