Added assignment to MString from ZString operator=.
This commit is contained in:
1 parent
61d9f8015e
commit
7b333a3984
5 files changed
+19
-5
No files matched your search
@@ -80,6 +80,13 @@ namespace coreutils {
|
||||
length = value.getLength();
|
||||
return *this;
|
||||
}
|
||||
|
||||
MString &MString::operator=(coreutils::ZString value) {
|
||||
setSize(value.getLength());
|
||||
memcpy(data, value.getData(), value.getLength());
|
||||
length = value.getLength();
|
||||
return *this;
|
||||
}
|
||||
|
||||
MString &MString::operator=(const char *value) {
|
||||
int len = strlen(value);
|
||||
|
||||
Reference in new issue
Block a user