mirror of
https://github.com/godotengine/godot.git
synced 2025-12-08 06:09:55 +00:00
Merge pull request #111223 from Ivorforce/remove-iterator-include
Replace `std::size` usage with `std_size` to avoid `<iterator>` include.
This commit is contained in:
commit
d1d28c0bcf
39 changed files with 67 additions and 66 deletions
|
|
@ -445,7 +445,7 @@ class CharBuffer {
|
|||
public:
|
||||
_FORCE_INLINE_ CharBuffer() :
|
||||
buffer(stack_buffer),
|
||||
capacity(std::size(stack_buffer)) {
|
||||
capacity(std_size(stack_buffer)) {
|
||||
}
|
||||
|
||||
_FORCE_INLINE_ void push_back(char c) {
|
||||
|
|
|
|||
|
|
@ -47,7 +47,7 @@ String ResourceUID::get_cache_file() {
|
|||
}
|
||||
|
||||
static constexpr uint8_t uuid_characters[] = { 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', '0', '1', '2', '3', '4', '5', '6', '7', '8' };
|
||||
static constexpr uint32_t uuid_characters_element_count = std::size(uuid_characters);
|
||||
static constexpr uint32_t uuid_characters_element_count = std_size(uuid_characters);
|
||||
static constexpr uint8_t max_uuid_number_length = 13; // Max 0x7FFFFFFFFFFFFFFF (uid://d4n4ub6itg400) size is 13 characters.
|
||||
|
||||
String ResourceUID::id_to_text(ID p_id) const {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue