summaryrefslogtreecommitdiff
path: root/src/plugins/geoservices/nokia
diff options
context:
space:
mode:
authorAaron McCarthy <aaron.mccarthy@nokia.com>2012-06-26 13:54:12 +1000
committerQt by Nokia <qt-info@nokia.com>2012-06-26 07:05:22 +0200
commit223a169d92502ae6643e0e691f7e78f1a9d18c67 (patch)
tree766393e8a9c4eac60f8b772d89909444df034477 /src/plugins/geoservices/nokia
parenta69a4412a0ed7c1b5f1809a5ee8639a0cebd8c84 (diff)
downloadqtlocation-223a169d92502ae6643e0e691f7e78f1a9d18c67.tar.gz
Fix compile warnings.
Use toLatin1/fromLatin instead of toAscii/fromAscii. Add message format string to qCritical usages. Change-Id: I95c863fae6997cc8f85e0a6d16fdebba607a3ce1 Reviewed-by: Alex Wilson <alex.wilson@nokia.com>
Diffstat (limited to 'src/plugins/geoservices/nokia')
-rw-r--r--src/plugins/geoservices/nokia/qgeouriprovider.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/geoservices/nokia/qgeouriprovider.cpp b/src/plugins/geoservices/nokia/qgeouriprovider.cpp
index a3c25838..4b9fe7d0 100644
--- a/src/plugins/geoservices/nokia/qgeouriprovider.cpp
+++ b/src/plugins/geoservices/nokia/qgeouriprovider.cpp
@@ -90,7 +90,7 @@ QGeoUriProvider::QGeoUriProvider(
QString QGeoUriProvider::getCurrentHost() const
{
if (m_maxSubdomains) {
- QString result(m_firstSubdomain.toAscii() + qrand() % m_maxSubdomains);
+ QString result(m_firstSubdomain.toLatin1() + qrand() % m_maxSubdomains);
result += "." + m_currentHost;
return result;
}
@@ -102,7 +102,7 @@ void QGeoUriProvider::setCurrentHost(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_currentHost = realHost;
} else {
m_currentHost = host;