diff options
author | Lioncash <mathew1800@gmail.com> | 2018-07-18 16:52:12 -0400 |
---|---|---|
committer | Lioncash <mathew1800@gmail.com> | 2018-07-18 16:52:14 -0400 |
commit | d17e172d924417517c75085f1c2b20d4dedd7670 (patch) | |
tree | b4552adf9a44deb150b400ac7d85febbbed3520c /src/yuzu/game_list.cpp | |
parent | 3d1e8f750cb7ca4f06a04ed4b1dca61d11b94197 (diff) |
game_list: Make ContainsAllWords an internally linked non-member function
This function actually depends on no internal class state, so it doesn't
even need to be a part of the class interface.
Diffstat (limited to 'src/yuzu/game_list.cpp')
-rw-r--r-- | src/yuzu/game_list.cpp | 2 |
1 files changed, 1 insertions, 1 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); |