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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue