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:
@@ -83,8 +83,8 @@ FilePath ITestConfiguration::executableFilePath() const
|
||||
if (!hasExecutable())
|
||||
return {};
|
||||
|
||||
const Environment env = m_runnable.environment.size() == 0 ? Environment::systemEnvironment()
|
||||
: m_runnable.environment;
|
||||
const Environment env = m_runnable.environment.isValid()
|
||||
? m_runnable.environment : Environment::systemEnvironment();
|
||||
return env.searchInPath(m_runnable.command.executable().path());
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user