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.
This commit is contained in:
Lioncash 2018-05-17 16:35:45 -04:00
parent c98a8b59d5
commit c1f92d304f
2 changed files with 2 additions and 2 deletions

View File

@ -59,7 +59,7 @@ void GameListDialog::PopulateGameList()
m_game_list->sortItems();
}
const QString& GameListDialog::GetSelectedUniqueID()
const QString& GameListDialog::GetSelectedUniqueID() const
{
return m_game_id;
}

View File

@ -18,7 +18,7 @@ public:
explicit GameListDialog(QWidget* parent);
int exec() override;
const QString& GetSelectedUniqueID();
const QString& GetSelectedUniqueID() const;
private:
void CreateWidgets();