mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-13 19:49:51 +01:00
fix: make ChannelChatters::getUserColor
const
This commit is contained in:
parent
30fee9ac85
commit
5f08890308
|
@ -89,7 +89,7 @@ size_t ChannelChatters::colorsSize() const
|
||||||
return size;
|
return size;
|
||||||
}
|
}
|
||||||
|
|
||||||
const QColor ChannelChatters::getUserColor(const QString &user)
|
const QColor ChannelChatters::getUserColor(const QString &user) const
|
||||||
{
|
{
|
||||||
const auto chatterColors = this->chatterColors_.access();
|
const auto chatterColors = this->chatterColors_.access();
|
||||||
|
|
||||||
|
|
|
@ -24,7 +24,7 @@ public:
|
||||||
void addRecentChatter(const QString &user);
|
void addRecentChatter(const QString &user);
|
||||||
void addJoinedUser(const QString &user);
|
void addJoinedUser(const QString &user);
|
||||||
void addPartedUser(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 setUserColor(const QString &user, const QColor &color);
|
||||||
void updateOnlineChatters(const std::unordered_set<QString> &usernames);
|
void updateOnlineChatters(const std::unordered_set<QString> &usernames);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue