mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-01 21:58:48 +00:00
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:
parent
af35f38491
commit
ca0b9481ea
3 changed files with 18 additions and 14 deletions
|
@ -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;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue