From 486fc2271a804f8143f44476d55237f8a7755955 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Wed, 28 Sep 2022 15:11:23 -0600 Subject: [PATCH] [cplusplus] Add missing const --- src/hb-cplusplus.hh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/hb-cplusplus.hh b/src/hb-cplusplus.hh index c4d9d29e2..a210ab796 100644 --- a/src/hb-cplusplus.hh +++ b/src/hb-cplusplus.hh @@ -69,9 +69,9 @@ struct shared_ptr operator T * () const { return p; } T& operator * () const { return *get (); } T* operator -> () const { return get (); } - operator bool () { return p; } - bool operator == (const shared_ptr &o) { return p == o.p; } - bool operator != (const shared_ptr &o) { return p != o.p; } + operator bool () const { return p; } + bool operator == (const shared_ptr &o) const { return p == o.p; } + bool operator != (const shared_ptr &o) const { return p != o.p; } static T* get_empty() { return v::get_empty (); } T* reference() { return v::reference (p); }