mirror of
https://github.com/harfbuzz/harfbuzz.git
synced 2025-04-08 06:43:13 +00:00
Added minor fixes to build without errors with gcc 4.9.2
This commit is contained in:
parent
b8121ccbb6
commit
69da5aae02
2 changed files with 12 additions and 12 deletions
|
@ -106,10 +106,10 @@ struct hb_hashmap_t
|
|||
uint32_t total_hash () const
|
||||
{ return (hash * 31) + hb_hash (value); }
|
||||
|
||||
static constexpr bool is_trivial = std::is_trivially_constructible<K>::value &&
|
||||
std::is_trivially_destructible<K>::value &&
|
||||
std::is_trivially_constructible<V>::value &&
|
||||
std::is_trivially_destructible<V>::value;
|
||||
static constexpr bool is_trivial = hb_is_trivially_constructible(K) &&
|
||||
hb_is_trivially_destructible(K) &&
|
||||
hb_is_trivially_constructible(V) &&
|
||||
hb_is_trivially_destructible(V);
|
||||
};
|
||||
|
||||
hb_object_header_t header;
|
||||
|
@ -398,37 +398,37 @@ struct hb_hashmap_t
|
|||
|
||||
auto iter_items () const HB_AUTO_RETURN
|
||||
(
|
||||
+ hb_iter (items, size ())
|
||||
+ hb_iter (items, this->size ())
|
||||
| hb_filter (&item_t::is_real)
|
||||
)
|
||||
auto iter_ref () const HB_AUTO_RETURN
|
||||
(
|
||||
+ iter_items ()
|
||||
+ this->iter_items ()
|
||||
| hb_map (&item_t::get_pair_ref)
|
||||
)
|
||||
auto iter () const HB_AUTO_RETURN
|
||||
(
|
||||
+ iter_items ()
|
||||
+ this->iter_items ()
|
||||
| hb_map (&item_t::get_pair)
|
||||
)
|
||||
auto keys_ref () const HB_AUTO_RETURN
|
||||
(
|
||||
+ iter_items ()
|
||||
+ this->iter_items ()
|
||||
| hb_map (&item_t::get_key)
|
||||
)
|
||||
auto keys () const HB_AUTO_RETURN
|
||||
(
|
||||
+ keys_ref ()
|
||||
+ this->keys_ref ()
|
||||
| hb_map (hb_ridentity)
|
||||
)
|
||||
auto values_ref () const HB_AUTO_RETURN
|
||||
(
|
||||
+ iter_items ()
|
||||
+ this->iter_items ()
|
||||
| hb_map (&item_t::get_value)
|
||||
)
|
||||
auto values () const HB_AUTO_RETURN
|
||||
(
|
||||
+ values_ref ()
|
||||
+ this->values_ref ()
|
||||
| hb_map (hb_ridentity)
|
||||
)
|
||||
|
||||
|
|
|
@ -460,7 +460,7 @@ struct hb_vector_t
|
|||
Type pop ()
|
||||
{
|
||||
if (!length) return Null (Type);
|
||||
Type v {std::move (arrayZ[length - 1])};
|
||||
Type v (std::move (arrayZ[length - 1]));
|
||||
arrayZ[length - 1].~Type ();
|
||||
length--;
|
||||
return v;
|
||||
|
|
Loading…
Add table
Reference in a new issue