From fc51c45079feb7d77d25204c4c17a0733f1eca56 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Tue, 29 May 2018 16:44:55 -0700 Subject: [PATCH] Revert "[map] Make hb_map_set() return bool" This reverts commit 7bf1980146cfc081b06264ac367b23ae9397adf1. --- src/hb-map.cc | 4 ++-- src/hb-map.h | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/hb-map.cc b/src/hb-map.cc index 9c7ad78..4f50828 100644 --- a/src/hb-map.cc +++ b/src/hb-map.cc @@ -170,12 +170,12 @@ hb_map_allocation_successful (const hb_map_t *map) * * Since: REPLACEME **/ -hb_bool_t +void hb_map_set (hb_map_t *map, hb_codepoint_t key, hb_codepoint_t value) { - return map->set (key, value); + map->set (key, value); } /** diff --git a/src/hb-map.h b/src/hb-map.h index c12fa56..0901e3b 100644 --- a/src/hb-map.h +++ b/src/hb-map.h @@ -80,14 +80,14 @@ hb_map_allocation_successful (const hb_map_t *map); hb_map_is_empty (const hb_map_t *map); HB_EXTERN unsigned int - hb_map_get_population (const hb_map_t *map); + hb_set_get_population (const hb_set_t *set); HB_EXTERN hb_bool_t hb_map_is_equal (const hb_map_t *map, const hb_map_t *other); */ -HB_EXTERN hb_bool_t +HB_EXTERN void hb_map_set (hb_map_t *map, hb_codepoint_t key, hb_codepoint_t value); -- 2.7.4