Fix Qt::SkipEmptyParts deprecation warning (#3726)

Co-authored-by: pajlada <rasmus.karlsson@pajlada.com>
This commit is contained in:
Kasia
2022-05-14 12:11:39 +02:00
committed by GitHub
parent d6148381eb
commit 46a5c9509e
7 changed files with 29 additions and 11 deletions
@@ -21,6 +21,7 @@
#include "util/FormatTime.hpp"
#include "util/Helpers.hpp"
#include "util/IncognitoBrowser.hpp"
#include "util/Qt.hpp"
#include "util/StreamLink.hpp"
#include "util/Twitch.hpp"
#include "widgets/Window.hpp"
@@ -156,7 +157,7 @@ bool appendWhisperMessageWordsLocally(const QStringList &words)
bool appendWhisperMessageStringLocally(const QString &textNoEmoji)
{
QString text = getApp()->emotes->emojis.replaceShortCodes(textNoEmoji);
QStringList words = text.split(' ', QString::SkipEmptyParts);
QStringList words = text.split(' ', Qt::SkipEmptyParts);
if (words.length() == 0)
{
@@ -970,7 +971,7 @@ QString CommandController::execCommand(const QString &textNoEmoji,
ChannelPtr channel, bool dryRun)
{
QString text = getApp()->emotes->emojis.replaceShortCodes(textNoEmoji);
QStringList words = text.split(' ', QString::SkipEmptyParts);
QStringList words = text.split(' ', Qt::SkipEmptyParts);
if (words.length() == 0)
{
@@ -1007,7 +1008,7 @@ QString CommandController::execCommand(const QString &textNoEmoji,
text = getApp()->emotes->emojis.replaceShortCodes(
this->execCustomCommand(words, it.value(), dryRun, channel));
words = text.split(' ', QString::SkipEmptyParts);
words = text.split(' ', Qt::SkipEmptyParts);
if (words.length() == 0)
{