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 /src/libs/installer/packagemanagergui.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 'src/libs/installer/packagemanagergui.cpp')
-rw-r--r-- | src/libs/installer/packagemanagergui.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/libs/installer/packagemanagergui.cpp b/src/libs/installer/packagemanagergui.cpp index d25e9f486..116a9e039 100644 --- a/src/libs/installer/packagemanagergui.cpp +++ b/src/libs/installer/packagemanagergui.cpp @@ -2610,9 +2610,9 @@ void ReadyForInstallationPage::entering() // at the moment there is no better way to check this if (targetVolume.size() == 0 && installVolumeAvailableSize == 0) { - qDebug() << QString::fromLatin1("Cannot determine available space on device. Volume " - "descriptor: %1, Mount path: %2. Continue silently.").arg(targetVolume - .volumeDescriptor(), targetVolume.mountPath()); + qDebug().nospace() << "Cannot determine available space on device. " + "Volume descriptor: " << targetVolume.volumeDescriptor() + << ", Mount path: " << targetVolume.mountPath() << ". Continue silently."; return; // TODO: Shouldn't this also disable the "Next" button? } |