summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarkus Wick <markus@selfnet.de>2015-07-08 15:58:24 +0200
committerMarkus Wick <markus@selfnet.de>2015-07-08 15:58:24 +0200
commit31c083bf64db8b42a2dd08adbf6d4e98402db997 (patch)
tree6b526da19f84d747dcb8811ae301d76e90dd7abf
parent7b7d1b0dcf6801eb508877c0b180b82caa20b729 (diff)
parentb8706791d5c2c13f5a9712f433d491f320b5369b (diff)
Merge pull request #2725 from lioncash/ref
DolphinWX: Pass string by const reference in CISOProperties constructor
-rw-r--r--Source/Core/DolphinWX/ISOProperties.cpp2
-rw-r--r--Source/Core/DolphinWX/ISOProperties.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/Source/Core/DolphinWX/ISOProperties.cpp b/Source/Core/DolphinWX/ISOProperties.cpp
index 0be1535f09..8479b6eb6d 100644
--- a/Source/Core/DolphinWX/ISOProperties.cpp
+++ b/Source/Core/DolphinWX/ISOProperties.cpp
@@ -99,7 +99,7 @@ BEGIN_EVENT_TABLE(CISOProperties, wxDialog)
EVT_CHOICE(ID_LANG, CISOProperties::OnChangeBannerLang)
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)
{
// Load ISO data
diff --git a/Source/Core/DolphinWX/ISOProperties.h b/Source/Core/DolphinWX/ISOProperties.h
index 2f07ec8c10..fff7ba3352 100644
--- a/Source/Core/DolphinWX/ISOProperties.h
+++ b/Source/Core/DolphinWX/ISOProperties.h
@@ -51,7 +51,7 @@ struct PHackData
class CISOProperties : public wxDialog
{
public:
- CISOProperties(const std::string fileName,
+ CISOProperties(const std::string& fileName,
wxWindow* parent,
wxWindowID id = wxID_ANY,
const wxString& title = _("Properties"),