diff options
author | Lioncash <mathew1800@gmail.com> | 2018-07-18 00:12:39 -0400 |
---|---|---|
committer | Lioncash <mathew1800@gmail.com> | 2018-07-18 00:13:04 -0400 |
commit | c8f3fc9a4b7060d78b8bd2cdaf4b7b0b93cc4d05 (patch) | |
tree | 9d08ca2025e739da55dcbf9f97a35f7229e58cd9 /src/yuzu/game_list.h | |
parent | 8e28af6f89b4160db96be299675132a0ced7374d (diff) |
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.
Diffstat (limited to 'src/yuzu/game_list.h')
-rw-r--r-- | src/yuzu/game_list.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/yuzu/game_list.h b/src/yuzu/game_list.h index 7aff597b7..bf8486b54 100644 --- a/src/yuzu/game_list.h +++ b/src/yuzu/game_list.h @@ -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; |