diff options
author | Matthew Hoops | 2011-03-07 13:11:28 -0500 |
---|---|---|
committer | Matthew Hoops | 2011-03-07 13:11:28 -0500 |
commit | 826197cf76b85a3f0208ca2c410ce7bc92c5bb33 (patch) | |
tree | cb29db58df75511ee19357bcff1b6a00b5d35798 /common | |
parent | 4dba6962f579b136a556142e9bd2b3f83af38473 (diff) | |
download | scummvm-rg350-826197cf76b85a3f0208ca2c410ce7bc92c5bb33.tar.gz scummvm-rg350-826197cf76b85a3f0208ca2c410ce7bc92c5bb33.tar.bz2 scummvm-rg350-826197cf76b85a3f0208ca2c410ce7bc92c5bb33.zip |
COMMON: Make the operator=(String) function be a const reference instead
Diffstat (limited to 'common')
-rw-r--r-- | common/winexe.cpp | 4 | ||||
-rw-r--r-- | common/winexe.h | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/common/winexe.cpp b/common/winexe.cpp index de53ae6490..ea96cee4a0 100644 --- a/common/winexe.cpp +++ b/common/winexe.cpp @@ -28,8 +28,8 @@ namespace Common { -WinResourceID &WinResourceID::operator=(String string) { - _name = string; +WinResourceID &WinResourceID::operator=(const String &x) { + _name = x; _idType = kIDTypeString; return *this; } diff --git a/common/winexe.h b/common/winexe.h index 3567a037e1..af0d70c555 100644 --- a/common/winexe.h +++ b/common/winexe.h @@ -38,7 +38,7 @@ public: WinResourceID(String x) { _idType = kIDTypeString; _name = x; } WinResourceID(uint32 x) { _idType = kIDTypeNumerical; _id = x; } - WinResourceID &operator=(String string); + WinResourceID &operator=(const String &x); WinResourceID &operator=(uint32 x); bool operator==(const String &x) const; |