mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-29 14:42:26 +00:00
COMMON: Make the operator=(String) function be a const reference instead
This commit is contained in:
parent
4dba6962f5
commit
826197cf76
@ -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…
x
Reference in New Issue
Block a user