diff --git a/src/hb-map.hh b/src/hb-map.hh index 5debdaccd..bc751aca7 100644 --- a/src/hb-map.hh +++ b/src/hb-map.hh @@ -312,7 +312,7 @@ struct hb_hashmap_t return nullptr; } /* Projection. */ - V operator () (K k) const { return get (k); } + const V& operator () (K k) const { return get (k); } unsigned size () const { return mask ? mask + 1 : 0; }