commit | 4d646773cf0fddb648119fbf575fbe3e5b6ab9fc | [log] [tgz] |
---|---|---|
author | Behdad Esfahbod <behdad@behdad.org> | Thu Jun 02 10:02:44 2022 -0600 |
committer | Behdad Esfahbod <behdad@behdad.org> | Thu Jun 02 18:22:05 2022 +0100 |
tree | 9f3f2016f3fa4a16ac7dd91ad85a25b233c278ce | |
parent | 7e7a4a8f05289552dbb217d20c4840efd43e31d2 [diff] [blame] |
[cplusplus] Make .reference() return T*
diff --git a/src/hb-cplusplus.hh b/src/hb-cplusplus.hh index 3ca2c92..afad2d1 100644 --- a/src/hb-cplusplus.hh +++ b/src/hb-cplusplus.hh
@@ -74,7 +74,7 @@ bool operator != (const shared_ptr &o) { return p != o.p; } static T* get_empty() { return v::get_empty (); } - void reference() { v::reference (p); } + T* reference() { return v::reference (p); } void destroy() { v::destroy (p); } void set_user_data (hb_user_data_key_t *key, void *value,