aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--common/winexe.cpp4
-rw-r--r--common/winexe.h2
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;