[HarfBuzz] harfbuzz: Branch 'master' - 3 commits

Behdad Esfahbod behdad at kemper.freedesktop.org
Thu Nov 1 22:15:04 UTC 2018


 src/hb-aat-map.hh |   12 +-----------
 src/hb-null.hh    |    2 +-
 2 files changed, 2 insertions(+), 12 deletions(-)

New commits:
commit de96e5c81c7f473520df93052ecea162baa5a350
Author: Behdad Esfahbod <behdad at behdad.org>
Date:   Thu Nov 1 18:13:58 2018 -0400

    [Crap] Avoid operator=

diff --git a/src/hb-null.hh b/src/hb-null.hh
index 3d8a1ae6..d5b74bf5 100644
--- a/src/hb-null.hh
+++ b/src/hb-null.hh
@@ -87,7 +87,7 @@ template <typename Type>
 static inline Type& Crap (void) {
   static_assert (sizeof (Type) <= HB_NULL_POOL_SIZE, "Increase HB_NULL_POOL_SIZE.");
   Type *obj = reinterpret_cast<Type *> (_hb_CrapPool);
-  *obj = Null(Type);
+  memcpy (obj, &Null(Type), sizeof (*obj));
   return *obj;
 }
 #define Crap(Type) Crap<typename hb_remove_const<typename hb_remove_reference<Type>::value>::value>()
commit f9353bd68c112dea8962dd586bf5e664f75a2a07
Author: Behdad Esfahbod <behdad at behdad.org>
Date:   Thu Nov 1 18:05:22 2018 -0400

    [aat] Rely on vector auto initialization

diff --git a/src/hb-aat-map.hh b/src/hb-aat-map.hh
index d974bd3f..6fd3fa1e 100644
--- a/src/hb-aat-map.hh
+++ b/src/hb-aat-map.hh
@@ -56,15 +56,7 @@ struct hb_aat_map_builder_t
 
   HB_INTERNAL hb_aat_map_builder_t (hb_face_t *face_,
 				    const hb_segment_properties_t *props_ HB_UNUSED) :
-				      face (face_)
-  {
-    features.init ();
-  }
-
-  ~hb_aat_map_builder_t (void)
-  {
-    features.fini ();
-  }
+				      face (face_) {}
 
   HB_INTERNAL void add_feature (hb_tag_t tag, unsigned int value=1);
 
commit 5a18d97b35d05c826c242e6847764c2418831a55
Author: Behdad Esfahbod <behdad at behdad.org>
Date:   Thu Nov 1 18:01:26 2018 -0400

    [aat] Remove unused forward declaration

diff --git a/src/hb-aat-map.hh b/src/hb-aat-map.hh
index 846cdc1a..d974bd3f 100644
--- a/src/hb-aat-map.hh
+++ b/src/hb-aat-map.hh
@@ -30,8 +30,6 @@
 #include "hb.hh"
 
 
-struct hb_ot_shape_plan_t;
-
 struct hb_aat_map_t
 {
   friend struct hb_aat_map_builder_t;


More information about the HarfBuzz mailing list