Merge pull request #2725 from lioncash/ref

DolphinWX: Pass string by const reference in CISOProperties constructor
This commit is contained in:
Markus Wick 2015-07-08 15:58:24 +02:00
commit 31c083bf64
2 changed files with 2 additions and 2 deletions

View File

@ -99,7 +99,7 @@ BEGIN_EVENT_TABLE(CISOProperties, wxDialog)
EVT_CHOICE(ID_LANG, CISOProperties::OnChangeBannerLang) EVT_CHOICE(ID_LANG, CISOProperties::OnChangeBannerLang)
END_EVENT_TABLE() END_EVENT_TABLE()
CISOProperties::CISOProperties(const std::string fileName, wxWindow* parent, wxWindowID id, const wxString& title, const wxPoint& position, const wxSize& size, long style) CISOProperties::CISOProperties(const std::string& fileName, wxWindow* parent, wxWindowID id, const wxString& title, const wxPoint& position, const wxSize& size, long style)
: wxDialog(parent, id, title, position, size, style) : wxDialog(parent, id, title, position, size, style)
{ {
// Load ISO data // Load ISO data

View File

@ -51,7 +51,7 @@ struct PHackData
class CISOProperties : public wxDialog class CISOProperties : public wxDialog
{ {
public: public:
CISOProperties(const std::string fileName, CISOProperties(const std::string& fileName,
wxWindow* parent, wxWindow* parent,
wxWindowID id = wxID_ANY, wxWindowID id = wxID_ANY,
const wxString& title = _("Properties"), const wxString& title = _("Properties"),