From d6f5cbdd8c9a1d7dff089cd3a2541c19cc768955 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Thu, 13 Mar 2025 10:59:41 -0600 Subject: [PATCH] [aat] Fix a compiler warning --- src/hb-aat-layout-common.hh | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/hb-aat-layout-common.hh b/src/hb-aat-layout-common.hh index af7909d65..a39c483ca 100644 --- a/src/hb-aat-layout-common.hh +++ b/src/hb-aat-layout-common.hh @@ -53,16 +53,17 @@ static_assert (sizeof (hb_aat_class_cache_t) == 256, ""); struct hb_aat_scratch_t { hb_aat_scratch_t () = default; + hb_aat_scratch_t (const hb_aat_scratch_t &) = delete; hb_aat_scratch_t (hb_aat_scratch_t &&o) { - buffer_glyph_set = o.buffer_glyph_set; - o.buffer_glyph_set = nullptr; + buffer_glyph_set.set_relaxed (o.buffer_glyph_set.get_relaxed ()); + o.buffer_glyph_set.set_relaxed (nullptr); } hb_aat_scratch_t & operator = (hb_aat_scratch_t &&o) { - buffer_glyph_set = o.buffer_glyph_set; - o.buffer_glyph_set = nullptr; + buffer_glyph_set.set_relaxed (o.buffer_glyph_set.get_relaxed ()); + o.buffer_glyph_set.set_relaxed (nullptr); return *this; }