summaryrefslogtreecommitdiff
path: root/pango/opentype/hb-font.cc
diff options
context:
space:
mode:
authorBehdad Esfahbod <behdad@behdad.org>2009-08-03 22:43:02 -0400
committerBehdad Esfahbod <behdad@behdad.org>2009-08-03 22:43:02 -0400
commit2f19c9ae2e1e7f2d13b8e78d09fb992f55caf00b (patch)
tree844a315242d5c8d5f170116c80ab84d4feba5657 /pango/opentype/hb-font.cc
parent832cb0e4680d4274869ee67b84418e5ec06de247 (diff)
downloadpango-2f19c9ae2e1e7f2d13b8e78d09fb992f55caf00b.tar.gz
[HB] Remove use of typeof()
Diffstat (limited to 'pango/opentype/hb-font.cc')
-rw-r--r--pango/opentype/hb-font.cc14
1 files changed, 7 insertions, 7 deletions
diff --git a/pango/opentype/hb-font.cc b/pango/opentype/hb-font.cc
index b82fd287..869df34f 100644
--- a/pango/opentype/hb-font.cc
+++ b/pango/opentype/hb-font.cc
@@ -51,7 +51,7 @@ hb_font_callbacks_create (void)
{
hb_font_callbacks_t *fcallbacks;
- if (!HB_OBJECT_DO_CREATE (fcallbacks))
+ if (!HB_OBJECT_DO_CREATE (hb_font_callbacks_t, fcallbacks))
return &_hb_font_callbacks_nil;
return fcallbacks;
@@ -82,7 +82,7 @@ hb_font_callbacks_copy (hb_font_callbacks_t *other_fcallbacks)
{
hb_font_callbacks_t *fcallbacks;
- if (!HB_OBJECT_DO_CREATE (fcallbacks))
+ if (!HB_OBJECT_DO_CREATE (hb_font_callbacks_t, fcallbacks))
return &_hb_font_callbacks_nil;
*fcallbacks = *other_fcallbacks;
@@ -115,7 +115,7 @@ hb_unicode_callbacks_create (void)
{
hb_unicode_callbacks_t *ucallbacks;
- if (!HB_OBJECT_DO_CREATE (ucallbacks))
+ if (!HB_OBJECT_DO_CREATE (hb_unicode_callbacks_t, ucallbacks))
return &_hb_unicode_callbacks_nil;
return ucallbacks;
@@ -146,7 +146,7 @@ hb_unicode_callbacks_copy (hb_unicode_callbacks_t *other_ucallbacks)
{
hb_unicode_callbacks_t *ucallbacks;
- if (!HB_OBJECT_DO_CREATE (ucallbacks))
+ if (!HB_OBJECT_DO_CREATE (hb_unicode_callbacks_t, ucallbacks))
return &_hb_unicode_callbacks_nil;
*ucallbacks = *other_ucallbacks;
@@ -211,7 +211,7 @@ hb_face_create_for_tables (hb_get_table_func_t get_table,
{
hb_face_t *face;
- if (!HB_OBJECT_DO_CREATE (face)) {
+ if (!HB_OBJECT_DO_CREATE (hb_face_t, face)) {
if (destroy)
destroy (user_data);
return &_hb_face_nil;
@@ -232,7 +232,7 @@ hb_face_create_for_data (hb_blob_t *blob,
{
hb_face_t *face;
- if (!HB_OBJECT_DO_CREATE (face))
+ if (!HB_OBJECT_DO_CREATE (hb_face_t, face))
return &_hb_face_nil;
face->blob = hb_blob_reference (blob);
@@ -331,7 +331,7 @@ hb_font_create (hb_face_t *face)
{
hb_font_t *font;
- if (!HB_OBJECT_DO_CREATE (font))
+ if (!HB_OBJECT_DO_CREATE (hb_font_t, font))
return &_hb_font_nil;
font->face = hb_face_reference (face);