From b7d9a4874a38f06c2714898ff78ea8fdab6159c9 Mon Sep 17 00:00:00 2001 From: Rasmus Karlsson Date: Sat, 18 Nov 2023 11:21:37 +0100 Subject: [PATCH] fix: make `TwitchChannel::cheerEmote` const --- src/providers/twitch/TwitchChannel.cpp | 2 +- src/providers/twitch/TwitchChannel.hpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/providers/twitch/TwitchChannel.cpp b/src/providers/twitch/TwitchChannel.cpp index a8eace253..237123f8d 100644 --- a/src/providers/twitch/TwitchChannel.cpp +++ b/src/providers/twitch/TwitchChannel.cpp @@ -1702,7 +1702,7 @@ std::optional TwitchChannel::ffzCustomVipBadge() const return this->ffzCustomVipBadge_.get(); } -std::optional TwitchChannel::cheerEmote(const QString &string) +std::optional TwitchChannel::cheerEmote(const QString &string) const { auto sets = this->cheerEmoteSets_.access(); for (const auto &set : *sets) diff --git a/src/providers/twitch/TwitchChannel.hpp b/src/providers/twitch/TwitchChannel.hpp index a331812af..9ec4ddd34 100644 --- a/src/providers/twitch/TwitchChannel.hpp +++ b/src/providers/twitch/TwitchChannel.hpp @@ -200,7 +200,7 @@ public: const QString &version) const; // Cheers - std::optional cheerEmote(const QString &string); + std::optional cheerEmote(const QString &string) const; // Replies /**