You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-19 14:31:59 +00:00
Removed unnecessary assignments
This commit is contained in:
@@ -95,6 +95,9 @@ static bool _get_token(FileAccessRef &f, uint8_t &saved, PoolVector<uint8_t> &r_
|
||||
resized = true;
|
||||
}
|
||||
if (resized) {
|
||||
// Note: Certain C++ static analyzers might point out that the following assigment is unnecessary.
|
||||
// This is wrong since PoolVector<class T>::Write has an operator= method where the lhs gets updated under certain conditions.
|
||||
// See core/dvector.h.
|
||||
w = PoolVector<uint8_t>::Write();
|
||||
r_token.resize(token_max);
|
||||
w = r_token.write();
|
||||
|
||||
Reference in New Issue
Block a user