From: Behdad Esfahbod Date: Thu, 11 Apr 2019 15:16:01 +0000 (-0400) Subject: Rename a few macros X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=824fd342d5d66584a5ed88951e05975f33c55617;p=platform%2Fupstream%2FlibHarfBuzzSharp.git Rename a few macros --- diff --git a/src/hb-map.hh b/src/hb-map.hh index 834a994..b99fb8f 100644 --- a/src/hb-map.hh +++ b/src/hb-map.hh @@ -41,7 +41,7 @@ template struct hb_hashmap_t { - HB_NO_COPY_ASSIGN (hb_hashmap_t); + HB_DELETE_COPY_ASSIGN (hb_hashmap_t); hb_hashmap_t () { init (); } ~hb_hashmap_t () { fini (); } diff --git a/src/hb-open-type.hh b/src/hb-open-type.hh index 761a70f..379baeb 100644 --- a/src/hb-open-type.hh +++ b/src/hb-open-type.hh @@ -378,7 +378,7 @@ struct UnsizedArrayOf typedef Type item_t; static constexpr unsigned item_size = hb_static_size (Type); - HB_NO_CREATE_COPY_ASSIGN_TEMPLATE (UnsizedArrayOf, Type); + HB_DELETE_CREATE_COPY_ASSIGN_TEMPLATE (UnsizedArrayOf, Type); const Type& operator [] (int i_) const { @@ -534,7 +534,7 @@ struct ArrayOf typedef Type item_t; static constexpr unsigned item_size = hb_static_size (Type); - HB_NO_CREATE_COPY_ASSIGN_TEMPLATE2 (ArrayOf, Type, LenType); + HB_DELETE_CREATE_COPY_ASSIGN_TEMPLATE2 (ArrayOf, Type, LenType); const Type& operator [] (int i_) const { @@ -715,7 +715,7 @@ struct HeadlessArrayOf { static constexpr unsigned item_size = Type::static_size; - HB_NO_CREATE_COPY_ASSIGN_TEMPLATE2 (HeadlessArrayOf, Type, LenType); + HB_DELETE_CREATE_COPY_ASSIGN_TEMPLATE2 (HeadlessArrayOf, Type, LenType); const Type& operator [] (int i_) const { @@ -780,7 +780,7 @@ struct HeadlessArrayOf template struct ArrayOfM1 { - HB_NO_CREATE_COPY_ASSIGN_TEMPLATE2 (ArrayOfM1, Type, LenType); + HB_DELETE_CREATE_COPY_ASSIGN_TEMPLATE2 (ArrayOfM1, Type, LenType); const Type& operator [] (int i_) const { @@ -945,7 +945,7 @@ struct VarSizedBinSearchArrayOf { static constexpr unsigned item_size = Type::static_size; - HB_NO_CREATE_COPY_ASSIGN_TEMPLATE (VarSizedBinSearchArrayOf, Type); + HB_DELETE_CREATE_COPY_ASSIGN_TEMPLATE (VarSizedBinSearchArrayOf, Type); bool last_is_terminator () const { diff --git a/src/hb-set.hh b/src/hb-set.hh index 34498d9..76100f6 100644 --- a/src/hb-set.hh +++ b/src/hb-set.hh @@ -39,7 +39,7 @@ struct hb_set_t { - HB_NO_COPY_ASSIGN (hb_set_t); + HB_DELETE_COPY_ASSIGN (hb_set_t); hb_set_t () { init (); } ~hb_set_t () { fini (); } diff --git a/src/hb.hh b/src/hb.hh index 896b590..1aef23b 100644 --- a/src/hb.hh +++ b/src/hb.hh @@ -408,24 +408,24 @@ static_assert ((sizeof (hb_position_t) == 4), ""); static_assert ((sizeof (hb_mask_t) == 4), ""); static_assert ((sizeof (hb_var_int_t) == 4), ""); -#define HB_NO_COPY_ASSIGN(TypeName) \ +#define HB_DELETE_COPY_ASSIGN(TypeName) \ TypeName(const TypeName&); \ void operator=(const TypeName&) -#define HB_NO_COPY_ASSIGN_TEMPLATE(TypeName, T) \ +#define HB_DELETE_COPY_ASSIGN_TEMPLATE(TypeName, T) \ TypeName(const TypeName&); \ void operator=(const TypeName&) -#define HB_NO_COPY_ASSIGN_TEMPLATE2(TypeName, T1, T2) \ +#define HB_DELETE_COPY_ASSIGN_TEMPLATE2(TypeName, T1, T2) \ TypeName(const TypeName&); \ void operator=(const TypeName&) -#define HB_NO_CREATE_COPY_ASSIGN(TypeName) \ +#define HB_DELETE_CREATE_COPY_ASSIGN(TypeName) \ TypeName(); \ TypeName(const TypeName&); \ void operator=(const TypeName&) -#define HB_NO_CREATE_COPY_ASSIGN_TEMPLATE(TypeName, T) \ +#define HB_DELETE_CREATE_COPY_ASSIGN_TEMPLATE(TypeName, T) \ TypeName(); \ TypeName(const TypeName&); \ void operator=(const TypeName&) -#define HB_NO_CREATE_COPY_ASSIGN_TEMPLATE2(TypeName, T1, T2) \ +#define HB_DELETE_CREATE_COPY_ASSIGN_TEMPLATE2(TypeName, T1, T2) \ TypeName(); \ TypeName(const TypeName&); \ void operator=(const TypeName&)