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
+3 -1
View File
@@ -1,5 +1,7 @@
#include "messages/search/AuthorPredicate.hpp"
#include "util/Qt.hpp"
namespace chatterino {
AuthorPredicate::AuthorPredicate(const QStringList &authors)
@@ -8,7 +10,7 @@ AuthorPredicate::AuthorPredicate(const QStringList &authors)
// Check if any comma-seperated values were passed and transform those
for (const auto &entry : authors)
{
for (const auto &author : entry.split(',', QString::SkipEmptyParts))
for (const auto &author : entry.split(',', Qt::SkipEmptyParts))
{
this->authors_ << author;
}