Refactoring.

"bool" expressions should not be used as operands to built-in operators.
develop
Roman Telezhynskyi 2024-04-16 14:54:56 +03:00
parent 14d92ba834
commit 8c90fd0367
1 changed files with 2 additions and 1 deletions

View File

@ -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;