From 5f08890308a20df5c7b67a0898c4a91c43978b30 Mon Sep 17 00:00:00 2001 From: Rasmus Karlsson Date: Sat, 18 Nov 2023 11:20:33 +0100 Subject: [PATCH] fix: make `ChannelChatters::getUserColor` const --- src/common/ChannelChatters.cpp | 2 +- src/common/ChannelChatters.hpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/common/ChannelChatters.cpp b/src/common/ChannelChatters.cpp index d65ae931b..21befa412 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(); diff --git a/src/common/ChannelChatters.hpp b/src/common/ChannelChatters.hpp index b15717dc9..7c39621af 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);