mirror of
https://github.com/storytold/harfbuzz.git
synced 2026-11-20 06:21:16 +01:00
[map] Minor: use const reference in has()
This commit is contained in:
1 parent
24d5a11dcb
commit
b99efa6c8d
1 file changed
+1
-1
+1
-1
@@ -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<V> (vINVALID);
|
||||
return v != vinv;
|
||||
|
||||
Reference in new issue
Block a user