Fixed pointer type on MString operator=.

This commit is contained in:
Brad Arant 2023-10-07 18:15:17 -07:00
parent b44a00862b
commit 61d9f8015e
4 changed files with 2 additions and 2 deletions

View File

@ -74,7 +74,7 @@ namespace coreutils {
free(data);
}
MString &MString::operator=(coreutils::MString &value) {
MString &MString::operator=(coreutils::MString value) {
setSize(value.getLength());
memcpy(data, value.getData(), value.getLength());
length = value.getLength();

View File

@ -97,7 +97,7 @@ namespace coreutils
// MString& operator=(coreutils::ZString& data);
MString &operator=(coreutils::MString &data);
MString &operator=(coreutils::MString data);
///
/// Assignment operator will copy data to backing store.

Binary file not shown.

Binary file not shown.