From c8f3fc9a4b7060d78b8bd2cdaf4b7b0b93cc4d05 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Wed, 18 Jul 2018 00:12:39 -0400 Subject: 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. --- src/yuzu/game_list.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/yuzu/game_list.h') 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; -- cgit v1.2.3 From f4b98a857b7e4e1b54670d8a86c2937b6030d9cf Mon Sep 17 00:00:00 2001 From: Lioncash Date: Wed, 18 Jul 2018 00:15:46 -0400 Subject: game_list: Upper-case containsAllWords to ContainsAllWords() This makes it consistent with most of the other private utility functions. --- src/yuzu/game_list.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/yuzu/game_list.h') diff --git a/src/yuzu/game_list.h b/src/yuzu/game_list.h index bf8486b54..14db3956d 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(const QString& haystack, const QString& userinput) const; + bool ContainsAllWords(const QString& haystack, const QString& userinput) const; SearchField* search_field; GMainWindow* main_window = nullptr; -- cgit v1.2.3