Harden emote parsing (#3885)
This commit is contained in:
@@ -14,7 +14,15 @@ namespace chatterino {
|
||||
class Settings;
|
||||
class Paths;
|
||||
|
||||
class Emotes final : public Singleton
|
||||
class IEmotes
|
||||
{
|
||||
public:
|
||||
virtual ~IEmotes() = default;
|
||||
|
||||
virtual ITwitchEmotes *getTwitchEmotes() = 0;
|
||||
};
|
||||
|
||||
class Emotes final : public IEmotes, public Singleton
|
||||
{
|
||||
public:
|
||||
Emotes();
|
||||
@@ -23,6 +31,11 @@ public:
|
||||
|
||||
bool isIgnoredEmote(const QString &emote);
|
||||
|
||||
ITwitchEmotes *getTwitchEmotes() final
|
||||
{
|
||||
return &this->twitch;
|
||||
}
|
||||
|
||||
TwitchEmotes twitch;
|
||||
Emojis emojis;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user