refactor: add explicit this-> where possible

I have knowingly skipped some files/portions of files where this would
create merge conflicts for other open PRs.
This commit is contained in:
Rasmus Karlsson
2025-12-30 13:30:57 +01:00
committed by pajlada
parent e0101f71c2
commit 57d6583a2b
64 changed files with 180 additions and 177 deletions
@@ -21,10 +21,10 @@ std::optional<EmotePtr> ChatterinoBadges::getBadge(const UserId &id)
{
std::shared_lock lock(this->mutex_);
auto it = badgeMap.find(id.string);
if (it != badgeMap.end())
auto it = this->badgeMap.find(id.string);
if (it != this->badgeMap.end())
{
return emotes[it->second];
return this->emotes[it->second];
}
return std::nullopt;
}
@@ -66,12 +66,12 @@ void ChatterinoBadges::loadChatterinoBadges()
.homePage = Url{},
};
emotes.push_back(
this->emotes.push_back(
std::make_shared<const Emote>(std::move(emote)));
for (const auto &user : jsonBadge.value("users").toArray())
{
badgeMap[user.toString()] = index;
this->badgeMap[user.toString()] = index;
}
++index;
}