fix: make ChannelChatters::getUserColor const

This commit is contained in:
Rasmus Karlsson 2023-11-18 11:20:33 +01:00
parent 30fee9ac85
commit 5f08890308
2 changed files with 2 additions and 2 deletions

View file

@ -89,7 +89,7 @@ size_t ChannelChatters::colorsSize() const
return size;
}
const QColor ChannelChatters::getUserColor(const QString &user)
const QColor ChannelChatters::getUserColor(const QString &user) const
{
const auto chatterColors = this->chatterColors_.access();

View file

@ -24,7 +24,7 @@ public:
void addRecentChatter(const QString &user);
void addJoinedUser(const QString &user);
void addPartedUser(const QString &user);
const QColor getUserColor(const QString &user);
const QColor getUserColor(const QString &user) const;
void setUserColor(const QString &user, const QColor &color);
void updateOnlineChatters(const std::unordered_set<QString> &usernames);