summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGravatar Morph2022-02-01 11:45:25 -0500
committerGravatar GitHub2022-02-01 11:45:25 -0500
commitf56226e17f4cf4f73201e8162bc8bdefc6468451 (patch)
treea20b71a8de4df1f7c0033331a112e9fe9c916104 /src
parentMerge pull request #7827 from FernandoS27/dynamite-costume-with-the-wick-outside (diff)
parentyuzu/game_list: Use non-deprecated version of QString's split() function (diff)
downloadyuzu-f56226e17f4cf4f73201e8162bc8bdefc6468451.tar.gz
yuzu-f56226e17f4cf4f73201e8162bc8bdefc6468451.tar.xz
yuzu-f56226e17f4cf4f73201e8162bc8bdefc6468451.zip
Merge pull request #7828 from lioncash/dep
yuzu/game_list: Use non-deprecated version of QString's split() function
Diffstat (limited to '')
-rw-r--r--src/yuzu/game_list.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/yuzu/game_list.cpp b/src/yuzu/game_list.cpp
index 8b5c4a10a..e3661b390 100644
--- a/src/yuzu/game_list.cpp
+++ b/src/yuzu/game_list.cpp
@@ -161,7 +161,7 @@ GameListSearchField::GameListSearchField(GameList* parent) : QWidget{parent} {
161 * @return true if the haystack contains all words of userinput 161 * @return true if the haystack contains all words of userinput
162 */ 162 */
163static bool ContainsAllWords(const QString& haystack, const QString& userinput) { 163static bool ContainsAllWords(const QString& haystack, const QString& userinput) {
164 const QStringList userinput_split = userinput.split(QLatin1Char{' '}, QString::SkipEmptyParts); 164 const QStringList userinput_split = userinput.split(QLatin1Char{' '}, Qt::SkipEmptyParts);
165 165
166 return std::all_of(userinput_split.begin(), userinput_split.end(), 166 return std::all_of(userinput_split.begin(), userinput_split.end(),
167 [&haystack](const QString& s) { return haystack.contains(s); }); 167 [&haystack](const QString& s) { return haystack.contains(s); });