mirror of
https://github.com/storytold/harfbuzz.git
synced 2026-11-30 10:04:24 +01:00
[map] Return const reference from operator()
Like we do in operator[].
This commit is contained in:
1 parent
b04ca1c188
commit
c6368e014d
1 file changed
+1
-1
+1
-1
@@ -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; }
|
||||
|
||||
|
||||
Reference in new issue
Block a user