diff --git a/src/hb-map.hh b/src/hb-map.hh index aec7d87f4..8990bd285 100644 --- a/src/hb-map.hh +++ b/src/hb-map.hh @@ -217,7 +217,7 @@ struct hb_hashmap_t value_t operator [] (K k) const { return get (k); } bool has (K k, V *vp = nullptr) const { - V v = (*this)[k]; + const V &v = (*this)[k]; if (vp) *vp = v; const V vinv = hb_coerce (vINVALID); return v != vinv;