diff options
author | kh1 <karsten.heimrich@nokia.com> | 2012-01-16 23:41:56 +0100 |
---|---|---|
committer | Tim Jenssen <tim.jenssen@nokia.com> | 2012-01-17 12:05:22 +0100 |
commit | e5c477906fd506cf06ac95311a5b3512a6d85e47 (patch) | |
tree | 5988dc146b4b48cb6fdd95e7ec22009f14e13d56 /installerbuilder/libinstaller/3rdparty | |
parent | 91ef6ea2ae0fa00b56c248a608c48b540e6dd51b (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/3rdparty')
-rw-r--r-- | installerbuilder/libinstaller/3rdparty/kdtools/kdupdaterufuncompressor.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/installerbuilder/libinstaller/3rdparty/kdtools/kdupdaterufuncompressor.cpp b/installerbuilder/libinstaller/3rdparty/kdtools/kdupdaterufuncompressor.cpp index 4ae146b97..fda944544 100644 --- a/installerbuilder/libinstaller/3rdparty/kdtools/kdupdaterufuncompressor.cpp +++ b/installerbuilder/libinstaller/3rdparty/kdtools/kdupdaterufuncompressor.cpp @@ -126,7 +126,7 @@ bool UFUncompressor::uncompress() d->setError(tr("Could not create folder: %1/%2").arg(d->destination, fileName)); return false; } - fileEngine.setFileName(QString(QLatin1String("%1/%2")).arg(d->destination, fileName)); + fileEngine.setFileName(QString::fromLatin1("%1/%2").arg(d->destination, fileName)); fileEngine.setPermissions(header.permList[i] | QAbstractFileEngine::ExeOwnerPerm); } else { ++numExpectedFiles; @@ -144,7 +144,7 @@ bool UFUncompressor::uncompress() } ufEntry.addToHash(hash); - const QString completeFileName = QString(QLatin1String( "%1/%2" )).arg(d->destination, ufEntry.fileName); + const QString completeFileName = QString::fromLatin1("%1/%2").arg(d->destination, ufEntry.fileName); const QByteArray ba = qUncompress(ufEntry.fileData); // check the size |