diff options
author | Lioncash <mathew1800@gmail.com> | 2018-07-18 22:52:12 +0200 |
---|---|---|
committer | Lioncash <mathew1800@gmail.com> | 2018-07-18 22:52:14 +0200 |
commit | d17e172d924417517c75085f1c2b20d4dedd7670 (patch) | |
tree | b4552adf9a44deb150b400ac7d85febbbed3520c /src | |
parent | Merge pull request #681 from lioncash/const (diff) | |
download | yuzu-d17e172d924417517c75085f1c2b20d4dedd7670.tar yuzu-d17e172d924417517c75085f1c2b20d4dedd7670.tar.gz yuzu-d17e172d924417517c75085f1c2b20d4dedd7670.tar.bz2 yuzu-d17e172d924417517c75085f1c2b20d4dedd7670.tar.lz yuzu-d17e172d924417517c75085f1c2b20d4dedd7670.tar.xz yuzu-d17e172d924417517c75085f1c2b20d4dedd7670.tar.zst yuzu-d17e172d924417517c75085f1c2b20d4dedd7670.zip |
Diffstat (limited to 'src')
-rw-r--r-- | src/yuzu/game_list.cpp | 2 | ||||
-rw-r--r-- | src/yuzu/game_list.h | 1 |
2 files changed, 1 insertions, 2 deletions
diff --git a/src/yuzu/game_list.cpp b/src/yuzu/game_list.cpp index 5f43eb177..31d997353 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 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; |