diff --git a/src/common/ChannelChatters.cpp b/src/common/ChannelChatters.cpp index 21befa412..df09c2f8e 100644 --- a/src/common/ChannelChatters.cpp +++ b/src/common/ChannelChatters.cpp @@ -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)); diff --git a/src/common/ChannelChatters.hpp b/src/common/ChannelChatters.hpp index 7c39621af..cd4408f08 100644 --- a/src/common/ChannelChatters.hpp +++ b/src/common/ChannelChatters.hpp @@ -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 &usernames);