projects
/
platform
/
upstream
/
libHarfBuzzSharp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b864208
)
[serialize] Add default template type to push()
author
Behdad Esfahbod
<behdad@behdad.org>
Mon, 1 Apr 2019 21:17:09 +0000
(14:17 -0700)
committer
Behdad Esfahbod
<behdad@behdad.org>
Mon, 1 Apr 2019 23:56:41 +0000
(16:56 -0700)
src/hb-serialize.hh
patch
|
blob
|
history
diff --git
a/src/hb-serialize.hh
b/src/hb-serialize.hh
index
451afc3
..
2b51f0f
100644
(file)
--- a/
src/hb-serialize.hh
+++ b/
src/hb-serialize.hh
@@
-152,7
+152,7
@@
struct hb_serialize_context_t
link ();
}
- template <typename Type>
+ template <typename Type
= void
>
Type *push ()
{
object_t obj;
@@
-218,6
+218,11
@@
struct hb_serialize_context_t
assert (packed.tail ().head == tail);
}
+ template <typename T>
+ void add_link (T &ofs, objidx_t objidx, const void *base)
+ {
+ }
+
void link ()
{
assert (!current.length);