[API] Rename hb_blob_create_empty() to hb_blob_get_empty()
authorBehdad Esfahbod <behdad@behdad.org>
Mon, 2 May 2011 23:36:39 +0000 (19:36 -0400)
committerBehdad Esfahbod <behdad@behdad.org>
Mon, 2 May 2011 23:36:39 +0000 (19:36 -0400)
src/hb-blob.cc
src/hb-blob.h
src/hb-font.cc
src/hb-open-type-private.hh

index 83a75f6..db12758 100644 (file)
@@ -141,7 +141,7 @@ hb_blob_create_sub_blob (hb_blob_t    *parent,
 }
 
 hb_blob_t *
-hb_blob_create_empty (void)
+hb_blob_get_empty (void)
 {
   return &_hb_blob_nil;
 }
index d698ee2..8bfbd48 100644 (file)
@@ -54,7 +54,7 @@ hb_blob_create_sub_blob (hb_blob_t    *parent,
                         unsigned int  length);
 
 hb_blob_t *
-hb_blob_create_empty (void);
+hb_blob_get_empty (void);
 
 hb_blob_t *
 hb_blob_reference (hb_blob_t *blob);
index 0a62fe3..91dde45 100644 (file)
@@ -443,7 +443,7 @@ hb_face_reference_table (hb_face_t *face,
 
   blob = face->get_table (tag, face->user_data);
   if (unlikely (!blob))
-    blob = hb_blob_create_empty();
+    blob = hb_blob_get_empty();
 
   return blob;
 }
index af8274d..20df95b 100644 (file)
@@ -334,7 +334,7 @@ struct Sanitizer
       return blob;
     else {
       hb_blob_destroy (blob);
-      return hb_blob_create_empty ();
+      return hb_blob_get_empty ();
     }
   }