refactor: fix clang-tidy auto*, const&, and curly braces (#5083)

This commit is contained in:
pajlada
2024-01-14 17:54:52 +01:00
committed by GitHub
parent 292f9b9734
commit 5b6675abb4
78 changed files with 647 additions and 228 deletions
+5 -1
View File
@@ -54,7 +54,9 @@ bool Settings::isHighlightedUser(const QString &username)
for (const auto &highlightedUser : *items)
{
if (highlightedUser.isMatch(username))
{
return true;
}
}
return false;
@@ -67,7 +69,9 @@ bool Settings::isBlacklistedUser(const QString &username)
for (const auto &blacklistedUser : *items)
{
if (blacklistedUser.isMatch(username))
{
return true;
}
}
return false;
@@ -208,7 +212,7 @@ void Settings::saveSnapshot()
}
rapidjson::Value key(setting->getPath().c_str(), a);
auto curVal = setting->unmarshalJSON();
auto *curVal = setting->unmarshalJSON();
if (curVal == nullptr)
{
continue;