Skip to content

VERY experimental Nintendo Switch 2 emulator

C++

game_list: Make ContainsAllWords an internally linked non-member function

Lioncash2b547cda8402
diff --git a/src/yuzu/game_list.cpp b/src/yuzu/game_list.cpp
index 5f43eb1770..31d9973531 100644
--- a/src/yuzu/game_list.cpp
+++ b/src/yuzu/game_list.cpp
@@ -138,7 +138,7 @@ GameList::SearchField::SearchField(GameList* parent) : QWidget{parent} {
* @param userinput String containing all words getting checked
* @return true if the haystack contains all words of userinput
*/
-bool GameList::ContainsAllWords(const QString& haystack, const QString& userinput) const {
+static bool ContainsAllWords(const QString& haystack, const QString& userinput) {
const QStringList userinput_split =
userinput.split(' ', QString::SplitBehavior::SkipEmptyParts);
diff --git a/src/yuzu/game_list.h b/src/yuzu/game_list.h
index 14db3956d0..3bc14f07fe 100644
--- a/src/yuzu/game_list.h
+++ b/src/yuzu/game_list.h
@@ -89,7 +89,6 @@ private:
void PopupContextMenu(const QPoint& menu_location);
void RefreshGameDirectory();
- bool ContainsAllWords(const QString& haystack, const QString& userinput) const;
SearchField* search_field;
GMainWindow* main_window = nullptr;