Fix QString::SkipEmptyParts for real this time (#3747)

Follow-up to #3726
This commit is contained in:
Kasia 2022-05-17 11:33:27 +02:00 committed by GitHub
parent 98f8e0186d
commit 137269e91b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View file

@ -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 <QFileInfo>
@ -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<Badge> parseBadges(const QVariantMap &tags)

View file

@ -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 <QApplication>
@ -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<QString, QString> parseBadgeInfos(const QVariantMap &tags)