diff options
author | RĂ©mi Verschelde <remi@verschelde.fr> | 2021-03-16 21:28:00 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-03-16 21:28:00 +0100 |
commit | a6066c5e42765a8b41f3e331ffa080ddc9624641 (patch) | |
tree | 1a1ddbfb1df077a1f57b1fe9f49e4f646e6c2c60 /thirdparty/harfbuzz/src/hb-map.cc | |
parent | d71c9f00050ce08917c06c2ec235bc09ea52f5a7 (diff) | |
parent | b79e8c22f09456e0c0fbcc9ccc5de6b3d54f6476 (diff) |
Merge pull request #47072 from bruvzg/hb_2_8_0
HarfBuzz: Update to version 2.8.0
Diffstat (limited to 'thirdparty/harfbuzz/src/hb-map.cc')
-rw-r--r-- | thirdparty/harfbuzz/src/hb-map.cc | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/thirdparty/harfbuzz/src/hb-map.cc b/thirdparty/harfbuzz/src/hb-map.cc index f898bd8f92..f115da2bb8 100644 --- a/thirdparty/harfbuzz/src/hb-map.cc +++ b/thirdparty/harfbuzz/src/hb-map.cc @@ -117,7 +117,7 @@ hb_map_destroy (hb_map_t *map) * @map: A map * @key: The user-data key to set * @data: A pointer to the user data to set - * @destroy: (optional): A callback to call when @data is not needed anymore + * @destroy: (nullable): A callback to call when @data is not needed anymore * @replace: Whether to replace an existing data with the same key * * Attaches a user-data key/data pair to the specified map. @@ -162,7 +162,7 @@ hb_map_get_user_data (hb_map_t *map, * * Tests whether memory allocation for a set was successful. * - * Return value: %true if allocation succeeded, false otherwise + * Return value: %true if allocation succeeded, %false otherwise * * Since: 1.7.7 **/ @@ -230,7 +230,7 @@ hb_map_del (hb_map_t *map, * * Tests whether @key is an element of @map. * - * Return value: %true if @key is found in @map, false otherwise + * Return value: %true if @key is found in @map, %false otherwise * * Since: 1.7.7 **/ @@ -253,6 +253,9 @@ hb_map_has (const hb_map_t *map, void hb_map_clear (hb_map_t *map) { + if (unlikely (hb_object_is_immutable (map))) + return; + return map->clear (); } |