Codechange: Use data() instead of c_str(), if no NUL termination is needed.
This commit is contained in:
@@ -1043,7 +1043,7 @@ static void SlStdString(void *ptr, VarType conv)
|
||||
case SLA_SAVE: {
|
||||
size_t len = str->length();
|
||||
SlWriteArrayLength(len);
|
||||
SlCopyBytes(const_cast<void *>(static_cast<const void *>(str->c_str())), len);
|
||||
SlCopyBytes(const_cast<void *>(static_cast<const void *>(str->data())), len);
|
||||
break;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user