From 7131f9ed363f537539e1f2e55a7606d015fb3d8e Mon Sep 17 00:00:00 2001 From: mmb L Date: Sat, 27 Nov 2021 21:52:18 +0800 Subject: [PATCH] Rename updateOnlineChatters() argument name and local variable --- src/common/ChannelChatters.cpp | 6 +++--- src/common/ChannelChatters.hpp | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/common/ChannelChatters.cpp b/src/common/ChannelChatters.cpp index fbf26e31..59e843d1 100644 --- a/src/common/ChannelChatters.cpp +++ b/src/common/ChannelChatters.cpp @@ -71,10 +71,10 @@ void ChannelChatters::addPartedUser(const QString &user) } void ChannelChatters::updateOnlineChatters( - const std::unordered_set &chatters) + const std::unordered_set &usernames) { - auto chatters_ = this->chatters_.access(); - chatters_->updateOnlineChatters(chatters); + auto chatters = this->chatters_.access(); + chatters->updateOnlineChatters(usernames); } size_t ChannelChatters::colorsSize() const diff --git a/src/common/ChannelChatters.hpp b/src/common/ChannelChatters.hpp index 70ca5392..96d4810d 100644 --- a/src/common/ChannelChatters.hpp +++ b/src/common/ChannelChatters.hpp @@ -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 &chatters); + void updateOnlineChatters(const std::unordered_set &usernames); // colorsSize returns the amount of colors stored in `chatterColors_` // NOTE: This function is only meant to be used in tests and benchmarks