COMMON: Make the operator=(String) function be a const reference instead
This commit is contained in:
parent
4dba6962f5
commit
826197cf76
2 changed files with 3 additions and 3 deletions
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue