From: Behdad Esfahbod Date: Tue, 7 May 2019 06:17:39 +0000 (-0700) Subject: Rename hb_deref_pointer() to hb_deref() X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=240f57e58d3b0161feb90621d5db9e2fc4d99b27;p=platform%2Fupstream%2FlibHarfBuzzSharp.git Rename hb_deref_pointer() to hb_deref() --- diff --git a/src/hb-algs.hh b/src/hb-algs.hh index e070010..ee604e8 100644 --- a/src/hb-algs.hh +++ b/src/hb-algs.hh @@ -50,7 +50,7 @@ struct { private: template auto - impl (const T& v, hb_priority<1>) const HB_RETURN (uint32_t, hb_deref_pointer (v).hash ()) + impl (const T& v, hb_priority<1>) const HB_RETURN (uint32_t, hb_deref (v).hash ()) template auto @@ -73,17 +73,17 @@ struct /* Pointer-to-member-function. */ template auto impl (Appl&& a, hb_priority<2>, Val1 &&v1, Vals &&...vs) const HB_AUTO_RETURN - ((hb_deref_pointer (hb_forward (v1)).*hb_forward (a)) (hb_forward (vs)...)) + ((hb_deref (hb_forward (v1)).*hb_forward (a)) (hb_forward (vs)...)) /* Pointer-to-member. */ template auto impl (Appl&& a, hb_priority<1>, Val &&v) const HB_AUTO_RETURN - ((hb_deref_pointer (hb_forward (v))).*hb_forward (a)) + ((hb_deref (hb_forward (v))).*hb_forward (a)) /* Operator(). */ template auto impl (Appl&& a, hb_priority<0>, Vals &&...vs) const HB_AUTO_RETURN - (hb_deref_pointer (hb_forward (a)) (hb_forward (vs)...)) + (hb_deref (hb_forward (a)) (hb_forward (vs)...)) public: @@ -102,7 +102,7 @@ struct template auto impl (Pred&& p, Val &&v, hb_priority<1>) const HB_AUTO_RETURN - (hb_deref_pointer (hb_forward (p)).has (v)) + (hb_deref (hb_forward (p)).has (v)) template auto impl (Pred&& p, Val &&v, hb_priority<0>) const HB_AUTO_RETURN @@ -127,7 +127,7 @@ struct template auto impl (Proj&& f, Val &&v, hb_priority<1>) const HB_AUTO_RETURN - (hb_deref_pointer (hb_forward (f)).get (hb_forward (v))) + (hb_deref (hb_forward (f)).get (hb_forward (v))) template auto impl (Proj&& f, Val &&v, hb_priority<0>) const HB_AUTO_RETURN diff --git a/src/hb-map.hh b/src/hb-map.hh index bbb1bef..f27ca9c 100644 --- a/src/hb-map.hh +++ b/src/hb-map.hh @@ -57,7 +57,7 @@ struct hb_hashmap_t void clear () { key = kINVALID; value = vINVALID; } - bool operator == (K o) { return hb_deref_pointer (key) == hb_deref_pointer (o); } + bool operator == (K o) { return hb_deref (key) == hb_deref (o); } bool operator == (const item_t &o) { return *this == o.key; } bool is_unused () const { return key == kINVALID; } bool is_tombstone () const { return key != kINVALID && value == vINVALID; } diff --git a/src/hb-meta.hh b/src/hb-meta.hh index b80358c..f7699d7 100644 --- a/src/hb-meta.hh +++ b/src/hb-meta.hh @@ -126,7 +126,7 @@ struct template auto operator () (T *v) const HB_AUTO_RETURN (*v) -} HB_FUNCOBJ (hb_deref_pointer); +} HB_FUNCOBJ (hb_deref); template struct hb_enable_if {}; diff --git a/src/hb-serialize.hh b/src/hb-serialize.hh index d18934c..afaa4c4 100644 --- a/src/hb-serialize.hh +++ b/src/hb-serialize.hh @@ -132,7 +132,7 @@ struct hb_serialize_context_t { return check_equal (v1 = v2, v2); } template bool propagate_error (T &&obj) - { return check_success (!hb_deref_pointer (obj).in_error ()); } + { return check_success (!hb_deref (obj).in_error ()); } template bool propagate_error (T1 &&o1, Ts &&...os) { return propagate_error (hb_forward (o1)) &&