Add missing assignment operator to aiString
parent
7de0453b46
commit
6aafc58797
|
@ -304,6 +304,20 @@ struct aiString
|
||||||
data[len] = 0;
|
data[len] = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/** Assigment operator */
|
||||||
|
aiString& operator = (const aiString &rOther) {
|
||||||
|
if (this == &rOther) {
|
||||||
|
return *this;
|
||||||
|
}
|
||||||
|
|
||||||
|
length = rOther.length;;
|
||||||
|
memcpy( data, rOther.data, length);
|
||||||
|
data[length] = '\0';
|
||||||
|
return *this;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
/** Assign a const char* to the string */
|
/** Assign a const char* to the string */
|
||||||
aiString& operator = (const char* sz) {
|
aiString& operator = (const char* sz) {
|
||||||
Set(sz);
|
Set(sz);
|
||||||
|
|
Loading…
Reference in New Issue