game_list: Make containsAllWords a const member function
This doesn't actually modify the internal class state, so it can be a const member function. While we're at it, amend the function to take its arguments by const reference.
This commit is contained in:
parent
8e28af6f89
commit
c8f3fc9a4b
2 changed files with 6 additions and 4 deletions
|
@ -89,7 +89,7 @@ private:
|
|||
|
||||
void PopupContextMenu(const QPoint& menu_location);
|
||||
void RefreshGameDirectory();
|
||||
bool containsAllWords(QString haystack, QString userinput);
|
||||
bool containsAllWords(const QString& haystack, const QString& userinput) const;
|
||||
|
||||
SearchField* search_field;
|
||||
GMainWindow* main_window = nullptr;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue