ChangeGameDialog: Internally set the chosen game name

Passing in a reference to an empty string is unnecessary and
overcomplicates design.
This commit is contained in:
Lioncash
2015-08-16 01:08:51 -04:00
parent af35f38491
commit ca0b9481ea
3 changed files with 18 additions and 14 deletions

View File

@ -12,11 +12,13 @@ class wxListBox;
class ChangeGameDialog final : public wxDialog
{
public:
ChangeGameDialog(wxWindow* parent, const CGameListCtrl* const game_list, wxString& game_name);
ChangeGameDialog(wxWindow* parent, const CGameListCtrl* const game_list);
wxString GetChosenGameName() const;
private:
void OnPick(wxCommandEvent& event);
wxListBox* m_game_lbox;
wxString& m_game_name;
wxString m_game_name;
};