Permalink
Browse files

DolphinQt2/NetPlay/GameListDialog: Make GetSelectedUniqueID() const q…

…ualified

Given this member function returns a const reference to a QString, it
can be made const qualified, since it doesn't modify internal state.
  • Loading branch information...
lioncash committed May 17, 2018
1 parent c98a8b5 commit c1f92d304f5762bfea107c39ba732d28c20ed853
@@ -59,7 +59,7 @@ void GameListDialog::PopulateGameList()
m_game_list->sortItems();
}
const QString& GameListDialog::GetSelectedUniqueID()
const QString& GameListDialog::GetSelectedUniqueID() const
{
return m_game_id;
}
@@ -18,7 +18,7 @@ class GameListDialog : public QDialog
explicit GameListDialog(QWidget* parent);
int exec() override;
const QString& GetSelectedUniqueID();
const QString& GetSelectedUniqueID() const;
private:
void CreateWidgets();

0 comments on commit c1f92d3

Please sign in to comment.