From 9ecb0c75a114008b15364a8b968c1b1b45388d2a Mon Sep 17 00:00:00 2001 From: Christian Stenger Date: Mon, 23 Jul 2018 13:23:59 +0200 Subject: [PATCH] Debugger: Fix warnings for MSVC This patch amends ef952d6caa. Change-Id: If8809cf2985a4528eeff31263be4240b7e63a8b7 Reviewed-by: David Schulz --- src/plugins/debugger/cdb/cdbengine.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/plugins/debugger/cdb/cdbengine.cpp b/src/plugins/debugger/cdb/cdbengine.cpp index e114cb24675..951d3ad4964 100644 --- a/src/plugins/debugger/cdb/cdbengine.cpp +++ b/src/plugins/debugger/cdb/cdbengine.cpp @@ -1107,7 +1107,7 @@ void CdbEngine::runCommand(const DebuggerCommand &dbgCmd) elapsedLogTime(), qPrintable(dbgCmd.function), qPrintable(stateName(state())), m_commandForToken.size()); } - if (debug > 1) { + if (debug) { qDebug("CdbEngine::postCommand: resulting command '%s'\n", qPrintable(fullCmd)); } showMessage(cmd, LogInput); @@ -2162,11 +2162,11 @@ void CdbEngine::handleSessionIdle(const QString &message) void CdbEngine::handleExtensionMessage(char t, int token, const QString &what, const QString &message) { - if (debug > 1) { + if (debug) { QDebug nospace = qDebug().nospace(); nospace << "handleExtensionMessage " << t << ' ' << token << ' ' << what << ' ' << stateName(state()); - if (t == 'N' || debug > 1) + if (t == 'N' || debug) nospace << ' ' << message; else nospace << ' ' << message.size() << " bytes"; @@ -2359,7 +2359,7 @@ void CdbEngine::parseOutputLine(QString line) int token = 0; bool isStartToken = false; const bool isCommandToken = checkCommandToken(m_tokenPrefix, line, &token, &isStartToken); - if (debug > 1) + if (debug) qDebug("Reading CDB stdout '%s',\n isCommand=%d, token=%d, isStart=%d", qPrintable(line), isCommandToken, token, isStartToken);