You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-12-02 16:48:55 +00:00
harfbuzz: Update to 8.3.0
This commit is contained in:
7
thirdparty/harfbuzz/src/hb-vector.hh
vendored
7
thirdparty/harfbuzz/src/hb-vector.hh
vendored
@@ -37,6 +37,8 @@ template <typename Type,
|
||||
bool sorted=false>
|
||||
struct hb_vector_t
|
||||
{
|
||||
static constexpr bool realloc_move = true;
|
||||
|
||||
typedef Type item_t;
|
||||
static constexpr unsigned item_size = hb_static_size (Type);
|
||||
using array_t = typename std::conditional<sorted, hb_sorted_array_t<Type>, hb_array_t<Type>>::type;
|
||||
@@ -268,10 +270,9 @@ struct hb_vector_t
|
||||
}
|
||||
return new_array;
|
||||
}
|
||||
/* Specialization for hb_vector_t<hb_{vector,array}_t<U>> to speed up. */
|
||||
/* Specialization for types that can be moved using realloc(). */
|
||||
template <typename T = Type,
|
||||
hb_enable_if (hb_is_same (T, hb_vector_t<typename T::item_t>) ||
|
||||
hb_is_same (T, hb_array_t <typename T::item_t>))>
|
||||
hb_enable_if (T::realloc_move)>
|
||||
Type *
|
||||
realloc_vector (unsigned new_allocated, hb_priority<1>)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user