diff options
author | Kai Koehne <kai.koehne@theqtcompany.com> | 2015-07-08 16:56:22 +0200 |
---|---|---|
committer | Kai Koehne <kai.koehne@theqtcompany.com> | 2015-07-09 13:38:42 +0000 |
commit | b2a65ce68bce4fcd4b517d1aadedb40792bfc818 (patch) | |
tree | e3685aa349abe10148c250d963723c049919b5c9 /tools/binarycreator/binarycreator.cpp | |
parent | d7f53290d9a8589752b9191131dfe2b500a23511 (diff) |
Sanitize QDebug output
Prefer using the stream operator logic instead of using
QString::fromLatin1. Add a noquote() where a QString should be printed
without any quotes/escapes.
This also fixes the tests with Qt 5.5, where QString's are further
escaped.
Change-Id: Ie3afd14b9355101d3c0b52f30f66ec759c76526c
Reviewed-by: Karsten Heimrich <karsten.heimrich@theqtcompany.com>
Diffstat (limited to 'tools/binarycreator/binarycreator.cpp')
-rw-r--r-- | tools/binarycreator/binarycreator.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/tools/binarycreator/binarycreator.cpp b/tools/binarycreator/binarycreator.cpp index 4f400e6f2..4564b5188 100644 --- a/tools/binarycreator/binarycreator.cpp +++ b/tools/binarycreator/binarycreator.cpp @@ -280,8 +280,7 @@ static int assemble(Input input, const QInstaller::Settings &settings) qDebug() << "Creating resource archive for" << info.name; foreach (const QString &file, info.copiedFiles) { const QSharedPointer<Resource> resource(new Resource(file)); - qDebug() << QString::fromLatin1("Appending %1 (%2)").arg(file, - humanReadableSize(resource->size())); + qDebug().nospace() << "Appending " << file << " (" << humanReadableSize(resource->size()) << ")"; collection.appendResource(resource); } input.manager.insertCollection(collection); @@ -493,7 +492,7 @@ void copyConfigData(const QString &configFile, const QString &targetDir) const QString tagName = domElement.tagName(); const QString elementText = domElement.text(); - qDebug() << QString::fromLatin1("Read dom element: <%1>%2</%1>.").arg(tagName, elementText); + qDebug().noquote() << QString::fromLatin1("Read dom element: <%1>%2</%1>.").arg(tagName, elementText); QString newName = domElement.text().replace(QRegExp(QLatin1String("\\\\|/|\\.|:")), QLatin1String("_")); |