[set-digest] Minor no logic change
This commit is contained in:
parent
95b9763dbc
commit
20654cd889
|
@ -136,9 +136,8 @@ struct hb_set_digest_combiner_t
|
||||||
|
|
||||||
bool add_range (hb_codepoint_t a, hb_codepoint_t b)
|
bool add_range (hb_codepoint_t a, hb_codepoint_t b)
|
||||||
{
|
{
|
||||||
head.add_range (a, b);
|
return head.add_range (a, b) &&
|
||||||
tail.add_range (a, b);
|
tail.add_range (a, b);
|
||||||
return true;
|
|
||||||
}
|
}
|
||||||
template <typename T>
|
template <typename T>
|
||||||
void add_array (const T *array, unsigned int count, unsigned int stride=sizeof(T))
|
void add_array (const T *array, unsigned int count, unsigned int stride=sizeof(T))
|
||||||
|
@ -151,9 +150,8 @@ struct hb_set_digest_combiner_t
|
||||||
template <typename T>
|
template <typename T>
|
||||||
bool add_sorted_array (const T *array, unsigned int count, unsigned int stride=sizeof(T))
|
bool add_sorted_array (const T *array, unsigned int count, unsigned int stride=sizeof(T))
|
||||||
{
|
{
|
||||||
head.add_sorted_array (array, count, stride);
|
return head.add_sorted_array (array, count, stride) &&
|
||||||
tail.add_sorted_array (array, count, stride);
|
tail.add_sorted_array (array, count, stride);
|
||||||
return true;
|
|
||||||
}
|
}
|
||||||
template <typename T>
|
template <typename T>
|
||||||
bool add_sorted_array (const hb_sorted_array_t<const T>& arr) { return add_sorted_array (&arr, arr.len ()); }
|
bool add_sorted_array (const hb_sorted_array_t<const T>& arr) { return add_sorted_array (&arr, arr.len ()); }
|
||||||
|
|
Loading…
Reference in New Issue