forked from ShuriZma/suyu
1
0
Fork 0

yuzu/game_list: Use non-deprecated version of QString's split() function

The previous overload of split() was deprecated in 5.14.
This commit is contained in:
Lioncash 2022-02-01 11:41:01 -05:00
parent 7432343214
commit cd4aa50207
1 changed files with 1 additions and 1 deletions

View File

@ -161,7 +161,7 @@ GameListSearchField::GameListSearchField(GameList* parent) : QWidget{parent} {
* @return true if the haystack contains all words of userinput * @return true if the haystack contains all words of userinput
*/ */
static bool ContainsAllWords(const QString& haystack, const QString& userinput) { static bool ContainsAllWords(const QString& haystack, const QString& userinput) {
const QStringList userinput_split = userinput.split(QLatin1Char{' '}, QString::SkipEmptyParts); const QStringList userinput_split = userinput.split(QLatin1Char{' '}, Qt::SkipEmptyParts);
return std::all_of(userinput_split.begin(), userinput_split.end(), return std::all_of(userinput_split.begin(), userinput_split.end(),
[&haystack](const QString& s) { return haystack.contains(s); }); [&haystack](const QString& s) { return haystack.contains(s); });