mirror of
https://github.com/tiennm99/godot.git
synced 2026-08-24 02:25:22 +00:00
Added release function to PoolVector::Access.
For clarity, assign-to-release idiom for PoolVector::Read/Write replaced with a function call. Existing uses replaced (or removed if already handled by scope)
This commit is contained in:
@@ -319,7 +319,7 @@ struct _VariantCall {
|
||||
retval.resize(len);
|
||||
PoolByteArray::Write w = retval.write();
|
||||
copymem(w.ptr(), charstr.ptr(), len);
|
||||
w = PoolVector<uint8_t>::Write();
|
||||
w.release();
|
||||
|
||||
r_ret = retval;
|
||||
}
|
||||
@@ -334,7 +334,7 @@ struct _VariantCall {
|
||||
retval.resize(len);
|
||||
PoolByteArray::Write w = retval.write();
|
||||
copymem(w.ptr(), charstr.ptr(), len);
|
||||
w = PoolVector<uint8_t>::Write();
|
||||
w.release();
|
||||
|
||||
r_ret = retval;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user