mirror of
https://github.com/godotengine/godot.git
synced 2025-10-19 16:03:29 +00:00
Some code changed with Clang-Tidy
This commit is contained in:
parent
5c66771e3e
commit
4e5310cc60
175 changed files with 467 additions and 674 deletions
|
@ -206,8 +206,8 @@ PoolAllocator::ID PoolAllocator::alloc(int p_size) {
|
|||
if (!find_hole(&new_entry_indices_pos, size_to_alloc)) {
|
||||
|
||||
mt_unlock();
|
||||
ERR_PRINT("memory can't be compacted further");
|
||||
return POOL_ALLOCATOR_INVALID_ID;
|
||||
ERR_EXPLAIN("Memory can't be compacted further");
|
||||
ERR_FAIL_V(POOL_ALLOCATOR_INVALID_ID);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -217,7 +217,8 @@ PoolAllocator::ID PoolAllocator::alloc(int p_size) {
|
|||
|
||||
if (!found_free_entry) {
|
||||
mt_unlock();
|
||||
ERR_FAIL_COND_V(!found_free_entry, POOL_ALLOCATOR_INVALID_ID);
|
||||
ERR_EXPLAIN("No free entry found in PoolAllocator");
|
||||
ERR_FAIL_V(POOL_ALLOCATOR_INVALID_ID);
|
||||
}
|
||||
|
||||
/* move all entry indices up, make room for this one */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue