Refactoring.
"bool" expressions should not be used as operands to built-in operators.
This commit is contained in:
parent
14d92ba834
commit
8c90fd0367
|
@ -570,7 +570,8 @@ void VAbstractApplication::CheckSystemLocale()
|
|||
auto CheckLanguage = [](QStandardPaths::StandardLocation type, const QStringList &test)
|
||||
{
|
||||
const QString path = QStandardPaths::writableLocation(type);
|
||||
return std::any_of(test.begin(), test.end(), [path](const QString &t) { return path.contains(t); });
|
||||
bool const res = std::any_of(test.begin(), test.end(), [path](const QString &t) { return path.contains(t); });
|
||||
return static_cast<int>(res);
|
||||
};
|
||||
|
||||
int match = 0;
|
||||
|
|
Loading…
Reference in New Issue
Block a user