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:
hjk
2022-06-01 15:19:31 +02:00
parent b72f41c7f0
commit d76458a8b6
14 changed files with 24 additions and 19 deletions

View File

@@ -45,6 +45,11 @@ NameValueItems Environment::diff(const Environment &other, bool checkAppendPrepe
return m_dict.diff(other.m_dict, checkAppendPrepend);
}
int Environment::isValid() const
{
return m_dict.size() != 0;
}
QProcessEnvironment Environment::toProcessEnvironment() const
{
QProcessEnvironment result;