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:
@@ -1005,10 +1005,10 @@ bool DockerDevice::writeFileContents(const FilePath &filePath, const QByteArray
|
||||
|
||||
Environment DockerDevice::systemEnvironment() const
|
||||
{
|
||||
if (d->m_cachedEnviroment.size() == 0)
|
||||
if (!d->m_cachedEnviroment.isValid())
|
||||
d->fetchSystemEnviroment();
|
||||
|
||||
QTC_CHECK(d->m_cachedEnviroment.size() != 0);
|
||||
QTC_CHECK(d->m_cachedEnviroment.isValid());
|
||||
return d->m_cachedEnviroment;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user