From 4d646773cf0fddb648119fbf575fbe3e5b6ab9fc Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Thu, 2 Jun 2022 10:02:44 -0600 Subject: [PATCH] [cplusplus] Make .reference() return T* --- src/hb-cplusplus.hh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hb-cplusplus.hh b/src/hb-cplusplus.hh index 3ca2c9291..afad2d1b8 100644 --- a/src/hb-cplusplus.hh +++ b/src/hb-cplusplus.hh @@ -74,7 +74,7 @@ struct shared_ptr 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,