You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-04 12:00:25 +00:00
Some code changed with Clang-Tidy
This commit is contained in:
@@ -1189,7 +1189,7 @@ Error GDScriptTokenizerBuffer::set_code_buffer(const Vector<uint8_t> &p_buffer)
|
||||
int version = decode_uint32(&buf[4]);
|
||||
if (version > BYTECODE_VERSION) {
|
||||
ERR_EXPLAIN("Bytecode is too New! Please use a newer engine version.");
|
||||
ERR_FAIL_COND_V(version > BYTECODE_VERSION, ERR_INVALID_DATA);
|
||||
ERR_FAIL_V(ERR_INVALID_DATA);
|
||||
}
|
||||
int identifier_count = decode_uint32(&buf[8]);
|
||||
int constant_count = decode_uint32(&buf[12]);
|
||||
@@ -1303,7 +1303,7 @@ Vector<uint8_t> GDScriptTokenizerBuffer::parse_code_string(const String &p_code)
|
||||
} break;
|
||||
case TK_CONSTANT: {
|
||||
|
||||
Variant c = tt.get_token_constant();
|
||||
const Variant &c = tt.get_token_constant();
|
||||
if (!constant_map.has(c)) {
|
||||
int idx = constant_map.size();
|
||||
constant_map[c] = idx;
|
||||
|
||||
Reference in New Issue
Block a user