From 59d8f6c8173a9054b2594f38c06d9aa635da04c9 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Tue, 2 Nov 2021 10:33:53 -0600 Subject: [PATCH] [map] Fix copy assignment operator --- src/hb-map.hh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hb-map.hh b/src/hb-map.hh index 790457f26..311e612a8 100644 --- a/src/hb-map.hh +++ b/src/hb-map.hh @@ -44,7 +44,7 @@ struct hb_hashmap_t hb_hashmap_t (const hb_hashmap_t& o) : hb_hashmap_t () { hb_copy (o, *this); } hb_hashmap_t (hb_hashmap_t&& o) : hb_hashmap_t () { hb_swap (*this, o); } - hb_hashmap_t& operator= (const hb_hashmap_t&& o) { hb_copy (o, *this); return *this; } + hb_hashmap_t& operator= (const hb_hashmap_t& o) { hb_copy (o, *this); return *this; } hb_hashmap_t& operator= (hb_hashmap_t&& o) { hb_swap (*this, o); return *this; } hb_hashmap_t (std::initializer_list> lst) : hb_hashmap_t ()