From a750cb012855558e137c8eb483af1c94ea7d3e00 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Mon, 21 Nov 2022 21:03:32 -0700 Subject: [PATCH] Simplify rvalue creation --- src/hb-subset-plan.hh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/hb-subset-plan.hh b/src/hb-subset-plan.hh index 47f913dfd..74b603bb5 100644 --- a/src/hb-subset-plan.hh +++ b/src/hb-subset-plan.hh @@ -216,15 +216,15 @@ struct hb_subset_plan_t { if (sanitized_table_cache && !sanitized_table_cache->in_error () - && sanitized_table_cache->has (0+T::tableTag)) { - return hb_blob_reference (sanitized_table_cache->get (0+T::tableTag).get ()); + && sanitized_table_cache->has (+T::tableTag)) { + return hb_blob_reference (sanitized_table_cache->get (+T::tableTag).get ()); } hb::unique_ptr table_blob {hb_sanitize_context_t ().reference_table (source)}; hb_blob_t* ret = hb_blob_reference (table_blob.get ()); if (likely (sanitized_table_cache)) - sanitized_table_cache->set (0+T::tableTag, + sanitized_table_cache->set (+T::tableTag, std::move (table_blob)); return ret;