提交 a7dd90f5 编写于 作者: B Behdad Esfahbod

Revert "Remove HB_DISALLOW_COPY_AND_ASSIGN"

This reverts commit ff92de76.

Revert that and remove ASSERT_POD. Let's see which bots are
unhappy with this configuration...
上级 7b50bf52
......@@ -98,7 +98,6 @@ struct hb_map_t
};
hb_object_header_t header;
ASSERT_POD ();
bool successful; /* Allocations successful */
unsigned int population; /* Not including tombstones. */
unsigned int occupancy; /* Including tombstones. */
......@@ -252,7 +251,7 @@ struct hb_map_t
}
private:
HB_DISALLOW_ASSIGN (hb_map_t);
HB_DISALLOW_COPY_AND_ASSIGN (hb_map_t);
};
......
......@@ -99,7 +99,7 @@ struct hb_ot_shape_planner_t
}
private:
HB_DISALLOW_ASSIGN (hb_ot_shape_planner_t);
HB_DISALLOW_COPY_AND_ASSIGN (hb_ot_shape_planner_t);
};
......
......@@ -537,7 +537,11 @@ _hb_ceil_to_4 (unsigned int v)
*/
#define HB_DISALLOW_ASSIGN(TypeName) \
void operator=(const TypeName&)
void operator=(const TypeName&) = delete
#define HB_DISALLOW_COPY_AND_ASSIGN(TypeName) \
TypeName(const TypeName&) = delete; \
void operator=(const TypeName&) = delete
/*
* Static pools
......
......@@ -180,7 +180,6 @@ struct hb_set_t
static_assert (page_t::PAGE_BITS == sizeof (page_t) * 8, "");
hb_object_header_t header;
ASSERT_POD ();
bool successful; /* Allocations successful */
mutable unsigned int population;
hb_vector_t<page_map_t, 8> page_map;
......@@ -679,7 +678,7 @@ struct hb_set_t
inline hb_codepoint_t major_start (unsigned int major) const { return major * page_t::PAGE_BITS; }
private:
HB_DISALLOW_ASSIGN (hb_set_t);
HB_DISALLOW_COPY_AND_ASSIGN (hb_set_t);
};
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册