mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-16 02:03:07 -07:00
Use uniform initialization on some default arguments
This commit is contained in:
parent
8a19a0d4a0
commit
89dce36e98
22 changed files with 34 additions and 34 deletions
|
@ -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("'\""));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue