[iter] Use && in is_sink_of uses
This commit is contained in:
parent
c67c1b745b
commit
8fb7cc1c63
|
@ -206,7 +206,7 @@ struct Coverage
|
||||||
|
|
||||||
template <typename IterableOut,
|
template <typename IterableOut,
|
||||||
hb_requires (hb_is_sink_of (IterableOut, hb_codepoint_t))>
|
hb_requires (hb_is_sink_of (IterableOut, hb_codepoint_t))>
|
||||||
void intersect_set (const hb_set_t &glyphs, IterableOut &intersect_glyphs) const
|
void intersect_set (const hb_set_t &glyphs, IterableOut&& intersect_glyphs) const
|
||||||
{
|
{
|
||||||
switch (u.format)
|
switch (u.format)
|
||||||
{
|
{
|
||||||
|
|
|
@ -88,7 +88,7 @@ struct CoverageFormat1_3
|
||||||
|
|
||||||
template <typename IterableOut,
|
template <typename IterableOut,
|
||||||
hb_requires (hb_is_sink_of (IterableOut, hb_codepoint_t))>
|
hb_requires (hb_is_sink_of (IterableOut, hb_codepoint_t))>
|
||||||
void intersect_set (const hb_set_t &glyphs, IterableOut &intersect_glyphs) const
|
void intersect_set (const hb_set_t &glyphs, IterableOut&& intersect_glyphs) const
|
||||||
{
|
{
|
||||||
unsigned count = glyphArray.len;
|
unsigned count = glyphArray.len;
|
||||||
for (unsigned i = 0; i < count; i++)
|
for (unsigned i = 0; i < count; i++)
|
||||||
|
|
|
@ -140,7 +140,7 @@ struct CoverageFormat2_4
|
||||||
|
|
||||||
template <typename IterableOut,
|
template <typename IterableOut,
|
||||||
hb_requires (hb_is_sink_of (IterableOut, hb_codepoint_t))>
|
hb_requires (hb_is_sink_of (IterableOut, hb_codepoint_t))>
|
||||||
void intersect_set (const hb_set_t &glyphs, IterableOut &intersect_glyphs) const
|
void intersect_set (const hb_set_t &glyphs, IterableOut&& intersect_glyphs) const
|
||||||
{
|
{
|
||||||
for (const auto& range : rangeRecord)
|
for (const auto& range : rangeRecord)
|
||||||
{
|
{
|
||||||
|
|
|
@ -16,7 +16,7 @@ template<typename IteratorIn, typename IteratorOut,
|
||||||
hb_requires (hb_is_source_of (IteratorIn, unsigned int)),
|
hb_requires (hb_is_source_of (IteratorIn, unsigned int)),
|
||||||
hb_requires (hb_is_sink_of (IteratorOut, unsigned))>
|
hb_requires (hb_is_sink_of (IteratorOut, unsigned))>
|
||||||
static void
|
static void
|
||||||
_write_loca (IteratorIn it, bool short_offsets, IteratorOut dest)
|
_write_loca (IteratorIn&& it, bool short_offsets, IteratorOut&& dest)
|
||||||
{
|
{
|
||||||
unsigned right_shift = short_offsets ? 1 : 0;
|
unsigned right_shift = short_offsets ? 1 : 0;
|
||||||
unsigned int offset = 0;
|
unsigned int offset = 0;
|
||||||
|
|
Loading…
Reference in New Issue