Fixed pointer type on MString operator=.
This commit is contained in:
parent
b44a00862b
commit
61d9f8015e
@ -74,7 +74,7 @@ namespace coreutils {
|
|||||||
free(data);
|
free(data);
|
||||||
}
|
}
|
||||||
|
|
||||||
MString &MString::operator=(coreutils::MString &value) {
|
MString &MString::operator=(coreutils::MString value) {
|
||||||
setSize(value.getLength());
|
setSize(value.getLength());
|
||||||
memcpy(data, value.getData(), value.getLength());
|
memcpy(data, value.getData(), value.getLength());
|
||||||
length = value.getLength();
|
length = value.getLength();
|
||||||
|
@ -97,7 +97,7 @@ namespace coreutils
|
|||||||
|
|
||||||
// MString& operator=(coreutils::ZString& data);
|
// MString& operator=(coreutils::ZString& data);
|
||||||
|
|
||||||
MString &operator=(coreutils::MString &data);
|
MString &operator=(coreutils::MString data);
|
||||||
|
|
||||||
///
|
///
|
||||||
/// Assignment operator will copy data to backing store.
|
/// Assignment operator will copy data to backing store.
|
||||||
|
Binary file not shown.
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user