From 137269e91bed4e3402fd905361815e0a9c229dea Mon Sep 17 00:00:00 2001 From: Kasia Date: Tue, 17 May 2022 11:33:27 +0200 Subject: [PATCH] Fix QString::SkipEmptyParts for real this time (#3747) Follow-up to #3726 --- src/messages/SharedMessageBuilder.cpp | 4 ++-- src/providers/twitch/TwitchMessageBuilder.cpp | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) 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)