From c1f92d304f5762bfea107c39ba732d28c20ed853 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Thu, 17 May 2018 16:35:45 -0400 Subject: [PATCH] DolphinQt2/NetPlay/GameListDialog: Make GetSelectedUniqueID() const qualified Given this member function returns a const reference to a QString, it can be made const qualified, since it doesn't modify internal state. --- Source/Core/DolphinQt2/NetPlay/GameListDialog.cpp | 2 +- Source/Core/DolphinQt2/NetPlay/GameListDialog.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/Core/DolphinQt2/NetPlay/GameListDialog.cpp b/Source/Core/DolphinQt2/NetPlay/GameListDialog.cpp index 52ce85b345..a85c55f697 100644 --- a/Source/Core/DolphinQt2/NetPlay/GameListDialog.cpp +++ b/Source/Core/DolphinQt2/NetPlay/GameListDialog.cpp @@ -59,7 +59,7 @@ void GameListDialog::PopulateGameList() m_game_list->sortItems(); } -const QString& GameListDialog::GetSelectedUniqueID() +const QString& GameListDialog::GetSelectedUniqueID() const { return m_game_id; } diff --git a/Source/Core/DolphinQt2/NetPlay/GameListDialog.h b/Source/Core/DolphinQt2/NetPlay/GameListDialog.h index 824fe3ee21..da04bd4996 100644 --- a/Source/Core/DolphinQt2/NetPlay/GameListDialog.h +++ b/Source/Core/DolphinQt2/NetPlay/GameListDialog.h @@ -18,7 +18,7 @@ public: explicit GameListDialog(QWidget* parent); int exec() override; - const QString& GetSelectedUniqueID(); + const QString& GetSelectedUniqueID() const; private: void CreateWidgets();