Merge pull request #10314 from thalieht/const2

More const
This commit is contained in:
Mike Tzou
2019-02-28 11:33:35 +08:00
committed by GitHub
72 changed files with 332 additions and 332 deletions

View File

@@ -159,7 +159,7 @@ namespace
.arg(fullParameter()).arg(QLatin1String("<value>")));
}
QString value(const QProcessEnvironment &env, const QString &defaultValue = QString()) const
QString value(const QProcessEnvironment &env, const QString &defaultValue = {}) const
{
QString val = env.value(envVarName());
return val.isEmpty() ? defaultValue : Utils::String::unquote(val, QLatin1String("'\""));