nit: remove const in return value of ChannelChatters::getUserColor

UNRELATED CHANGE :-)
This commit is contained in:
Rasmus Karlsson 2024-02-25 13:09:34 +01:00
parent 5616dc48b3
commit 08d8d26e92
2 changed files with 3 additions and 3 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();
@ -98,7 +98,7 @@ const QColor ChannelChatters::getUserColor(const QString &user) const
if (!chatterColors->exists(lowerUser))
{
// Returns an invalid color so we can decide not to override `textColor`
return QColor();
return {};
}
return QColor::fromRgb(chatterColors->get(lowerUser));

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);