diff --git a/src/messages/SharedMessageBuilder.cpp b/src/messages/SharedMessageBuilder.cpp index fdcf9dcc4..6b0948491 100644 --- a/src/messages/SharedMessageBuilder.cpp +++ b/src/messages/SharedMessageBuilder.cpp @@ -9,6 +9,7 @@ #include "singletons/Settings.hpp" #include "singletons/WindowManager.hpp" #include "util/Helpers.hpp" +#include "util/Qt.hpp" #include "util/StreamerMode.hpp" #include @@ -41,8 +42,7 @@ namespace { if (iterator == tags.end()) return QStringList{}; - return iterator.value().toString().split( - ',', QString::SplitBehavior::SkipEmptyParts); + return iterator.value().toString().split(',', Qt::SkipEmptyParts); } std::vector parseBadges(const QVariantMap &tags) diff --git a/src/providers/twitch/TwitchMessageBuilder.cpp b/src/providers/twitch/TwitchMessageBuilder.cpp index 3f89bb260..4d831252e 100644 --- a/src/providers/twitch/TwitchMessageBuilder.cpp +++ b/src/providers/twitch/TwitchMessageBuilder.cpp @@ -17,6 +17,7 @@ #include "singletons/WindowManager.hpp" #include "util/Helpers.hpp" #include "util/IrcHelpers.hpp" +#include "util/Qt.hpp" #include "widgets/Window.hpp" #include @@ -54,8 +55,7 @@ namespace { if (iterator == tags.end()) return QStringList{}; - return iterator.value().toString().split( - ',', QString::SplitBehavior::SkipEmptyParts); + return iterator.value().toString().split(',', Qt::SkipEmptyParts); } std::map parseBadgeInfos(const QVariantMap &tags)