COMMON: Make the operator=(String) function be a const reference instead

This commit is contained in:
Matthew Hoops 2011-03-07 13:11:28 -05:00
parent 4dba6962f5
commit 826197cf76
2 changed files with 3 additions and 3 deletions

View File

@ -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;
}

View File

@ -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;