mirror of
https://github.com/storytold/harfbuzz.git
synced 2026-11-22 15:31:05 +01:00
[iter] Accept pointers to hb_sink()
This commit is contained in:
1 parent
b530573ad9
commit
f8fcfb263e
2 files changed
+7
-3
No files matched your search
@@ -388,6 +388,10 @@ static const struct
|
||||
template <typename Sink> hb_sink_t<Sink>
|
||||
operator () (Sink&& s) const
|
||||
{ return hb_sink_t<Sink> (s); }
|
||||
|
||||
template <typename Sink> hb_sink_t<Sink&>
|
||||
operator () (Sink *s) const
|
||||
{ return hb_sink_t<Sink&> (*s); }
|
||||
} hb_sink HB_UNUSED;
|
||||
|
||||
|
||||
|
||||
@@ -138,7 +138,7 @@ struct SingleSubstFormat2
|
||||
+ hb_zip (this+coverage, substitute)
|
||||
| hb_filter (*c->glyphs, hb_first)
|
||||
| hb_map (hb_second)
|
||||
| hb_sink (*c->output)
|
||||
| hb_sink (c->output)
|
||||
;
|
||||
}
|
||||
|
||||
@@ -147,7 +147,7 @@ struct SingleSubstFormat2
|
||||
if (unlikely (!(this+coverage).add_coverage (c->input))) return;
|
||||
+ hb_zip (this+coverage, substitute)
|
||||
| hb_map (hb_second)
|
||||
| hb_sink (*c->output)
|
||||
| hb_sink (c->output)
|
||||
;
|
||||
}
|
||||
|
||||
@@ -1023,7 +1023,7 @@ struct ReverseChainSingleSubstFormat1
|
||||
+ hb_zip (this+coverage, substitute)
|
||||
| hb_filter (*c->glyphs, hb_first)
|
||||
| hb_map (hb_second)
|
||||
| hb_sink (*c->output)
|
||||
| hb_sink (c->output)
|
||||
;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user