forked from qt-creator/qt-creator
Utils: Replace Environment::size() check by some isValid() function
More descriptive, and later implementable without full expansion. Change-Id: Ic3b17ea0b07273f292827a7b63e7695b4bd1cf23 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
@@ -438,8 +438,8 @@ void CdbEngine::setupEngine()
|
||||
m_outputBuffer.clear();
|
||||
m_autoBreakPointCorrection = false;
|
||||
|
||||
Utils::Environment inferiorEnvironment = sp.inferior.environment.size() == 0
|
||||
? Utils::Environment::systemEnvironment() : sp.inferior.environment;
|
||||
Environment inferiorEnvironment = sp.inferior.environment.isValid()
|
||||
? sp.inferior.environment : Environment::systemEnvironment();
|
||||
|
||||
// Make sure that QTestLib uses OutputDebugString for logging.
|
||||
const QString qtLoggingToConsoleKey = QStringLiteral("QT_LOGGING_TO_CONSOLE");
|
||||
|
||||
Reference in New Issue
Block a user