[set-digest] Minor simplify
This commit is contained in:
parent
9855b678f2
commit
95b9763dbc
|
@ -103,11 +103,7 @@ struct hb_set_digest_bits_pattern_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))
|
||||||
{
|
{
|
||||||
for (unsigned int i = 0; i < count; i++)
|
add_array (array, count, stride);
|
||||||
{
|
|
||||||
add (*array);
|
|
||||||
array = (const T *) (stride + (const char *) array);
|
|
||||||
}
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
template <typename T>
|
template <typename T>
|
||||||
|
|
Loading…
Reference in New Issue