Rename updateOnlineChatters() argument name and local variable
This commit is contained in:
@@ -71,10 +71,10 @@ void ChannelChatters::addPartedUser(const QString &user)
|
|||||||
}
|
}
|
||||||
|
|
||||||
void ChannelChatters::updateOnlineChatters(
|
void ChannelChatters::updateOnlineChatters(
|
||||||
const std::unordered_set<QString> &chatters)
|
const std::unordered_set<QString> &usernames)
|
||||||
{
|
{
|
||||||
auto chatters_ = this->chatters_.access();
|
auto chatters = this->chatters_.access();
|
||||||
chatters_->updateOnlineChatters(chatters);
|
chatters->updateOnlineChatters(usernames);
|
||||||
}
|
}
|
||||||
|
|
||||||
size_t ChannelChatters::colorsSize() const
|
size_t ChannelChatters::colorsSize() const
|
||||||
|
|||||||
@@ -23,7 +23,7 @@ public:
|
|||||||
void addPartedUser(const QString &user);
|
void addPartedUser(const QString &user);
|
||||||
const QColor getUserColor(const QString &user);
|
const QColor getUserColor(const QString &user);
|
||||||
void setUserColor(const QString &user, const QColor &color);
|
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_`
|
// colorsSize returns the amount of colors stored in `chatterColors_`
|
||||||
// NOTE: This function is only meant to be used in tests and benchmarks
|
// NOTE: This function is only meant to be used in tests and benchmarks
|
||||||
|
|||||||
Reference in New Issue
Block a user