summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2018-07-19 03:55:00 +0200
committerGitHub <noreply@github.com>2018-07-19 03:55:00 +0200
commit2975f7820e1aaf69e436deb7b1b0920bc1fed494 (patch)
treee4833b52f61b2e9bf8cf55e3132ae02cb7471c4e
parentVirtual Filesystem 2: Electric Boogaloo (#676) (diff)
parentgame_list: Make ContainsAllWords an internally linked non-member function (diff)
downloadyuzu-2975f7820e1aaf69e436deb7b1b0920bc1fed494.tar
yuzu-2975f7820e1aaf69e436deb7b1b0920bc1fed494.tar.gz
yuzu-2975f7820e1aaf69e436deb7b1b0920bc1fed494.tar.bz2
yuzu-2975f7820e1aaf69e436deb7b1b0920bc1fed494.tar.lz
yuzu-2975f7820e1aaf69e436deb7b1b0920bc1fed494.tar.xz
yuzu-2975f7820e1aaf69e436deb7b1b0920bc1fed494.tar.zst
yuzu-2975f7820e1aaf69e436deb7b1b0920bc1fed494.zip
-rw-r--r--src/yuzu/game_list.cpp2
-rw-r--r--src/yuzu/game_list.h1
2 files changed, 1 insertions, 2 deletions
diff --git a/src/yuzu/game_list.cpp b/src/yuzu/game_list.cpp
index 352bc1839..e1ca0e77b 100644
--- a/src/yuzu/game_list.cpp
+++ b/src/yuzu/game_list.cpp
@@ -139,7 +139,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 14db3956d..3bc14f07f 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;