Merge pull request #684 from lioncash/nonmember

game_list: Make ContainsAllWords an internally linked non-member function
This commit is contained in:
bunnei 2018-07-18 18:55:00 -07:00 committed by GitHub
commit 2975f7820e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 2 deletions

View File

@ -139,7 +139,7 @@ GameList::SearchField::SearchField(GameList* parent) : QWidget{parent} {
* @param userinput String containing all words getting checked * @param userinput String containing all words getting checked
* @return true if the haystack contains all words of userinput * @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 = const QStringList userinput_split =
userinput.split(' ', QString::SplitBehavior::SkipEmptyParts); userinput.split(' ', QString::SplitBehavior::SkipEmptyParts);

View File

@ -89,7 +89,6 @@ private:
void PopupContextMenu(const QPoint& menu_location); void PopupContextMenu(const QPoint& menu_location);
void RefreshGameDirectory(); void RefreshGameDirectory();
bool ContainsAllWords(const QString& haystack, const QString& userinput) const;
SearchField* search_field; SearchField* search_field;
GMainWindow* main_window = nullptr; GMainWindow* main_window = nullptr;