summaryrefslogtreecommitdiffstats
path: root/installerbuilder/libinstaller/getrepositorymetainfojob.cpp
diff options
context:
space:
mode:
authorkh1 <karsten.heimrich@nokia.com>2012-01-16 23:41:56 +0100
committerTim Jenssen <tim.jenssen@nokia.com>2012-01-17 12:05:22 +0100
commite5c477906fd506cf06ac95311a5b3512a6d85e47 (patch)
tree5988dc146b4b48cb6fdd95e7ec22009f14e13d56 /installerbuilder/libinstaller/getrepositorymetainfojob.cpp
parent91ef6ea2ae0fa00b56c248a608c48b540e6dd51b (diff)
Small QString improvements.
Use QString::fromLatin1 instead of creating QLatin1String inside the the QString constructor first. Remove some superfluous QStrings at all. Change-Id: Icea93494c669ffa382fd5fbfacc6596383b4de21 Reviewed-by: Tim Jenssen <tim.jenssen@nokia.com> Reviewed-by: Alexander Lenhardt <alexander.lenhardt@nokia.com>
Diffstat (limited to 'installerbuilder/libinstaller/getrepositorymetainfojob.cpp')
-rw-r--r--installerbuilder/libinstaller/getrepositorymetainfojob.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/installerbuilder/libinstaller/getrepositorymetainfojob.cpp b/installerbuilder/libinstaller/getrepositorymetainfojob.cpp
index fc6cce5b5..f6bc0144b 100644
--- a/installerbuilder/libinstaller/getrepositorymetainfojob.cpp
+++ b/installerbuilder/libinstaller/getrepositorymetainfojob.cpp
@@ -211,8 +211,8 @@ void GetRepositoryMetaInfoJob::startUpdatesXmlDownload()
}
//append a random string to avoid proxy caches
- m_downloader->setUrl(QUrl(url.toString() + QString(QLatin1String("/Updates.xml?")).append(
- QString::number(qrand() * qrand()))));
+ m_downloader->setUrl(QUrl(url.toString() + QString::fromLatin1("/Updates.xml?")
+ .append(QString::number(qrand() * qrand()))));
QAuthenticator auth;
auth.setUser(m_repository.username());