Rename updateOnlineChatters() argument name and local variable

This commit is contained in:
mmb L
2021-11-27 21:52:18 +08:00
committed by pajlada
parent 8116c30261
commit 7131f9ed36
2 changed files with 4 additions and 4 deletions
+3 -3
View File
@@ -71,10 +71,10 @@ void ChannelChatters::addPartedUser(const QString &user)
}
void ChannelChatters::updateOnlineChatters(
const std::unordered_set<QString> &chatters)
const std::unordered_set<QString> &usernames)
{
auto chatters_ = this->chatters_.access();
chatters_->updateOnlineChatters(chatters);
auto chatters = this->chatters_.access();
chatters->updateOnlineChatters(usernames);
}
size_t ChannelChatters::colorsSize() const
+1 -1
View File
@@ -23,7 +23,7 @@ public:
void addPartedUser(const QString &user);
const QColor getUserColor(const QString &user);
void setUserColor(const QString &user, const QColor &color);
void updateOnlineChatters(const std::unordered_set<QString> &chatters);
void updateOnlineChatters(const std::unordered_set<QString> &usernames);
// colorsSize returns the amount of colors stored in `chatterColors_`
// NOTE: This function is only meant to be used in tests and benchmarks