mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-21 22:24:07 +01:00
nit: remove const in return value of ChannelChatters::getUserColor
UNRELATED CHANGE :-)
This commit is contained in:
parent
5616dc48b3
commit
08d8d26e92
2 changed files with 3 additions and 3 deletions
|
@ -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));
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue