Fix a whitespace inconsistency
Null() and Crap() are only places that there's no space before '('...
diff --git a/src/dump-fon.cc b/src/dump-fon.cc
index 43d0ab0..4015409 100644
--- a/src/dump-fon.cc
+++ b/src/dump-fon.cc
@@ -341,7 +341,7 @@
{
const NE_TYPEINFO& next = OT::StructAfter<NE_TYPEINFO> (*this);
if (type_id == 0)
- return Null (NE_TYPEINFO);
+ return Null(NE_TYPEINFO);
return next;
}
@@ -349,7 +349,7 @@
{
if (idx < count)
return resources[idx].get_font (base, shift);
- return Null (LE_FONTINFO16);
+ return Null(LE_FONTINFO16);
}
inline unsigned int get_count () const
@@ -398,7 +398,7 @@
return_trace (false);
const NE_TYPEINFO* n = &chain;
- while (n != &Null (NE_TYPEINFO) && c->check_struct (n) && n->get_type_id () != 0)
+ while (n != &Null(NE_TYPEINFO) && c->check_struct (n) && n->get_type_id () != 0)
{
if (n->get_type_id () == NE_TYPEINFO::FONT)
return_trace (n->sanitize (c, base, alignmentShiftCount));
@@ -415,13 +415,13 @@
inline const NE_TYPEINFO& get_fonts_entry () const
{
const NE_TYPEINFO* n = &chain;
- while (n != &Null (NE_TYPEINFO) && n->get_type_id () != 0)
+ while (n != &Null(NE_TYPEINFO) && n->get_type_id () != 0)
{
if (n->get_type_id () == NE_TYPEINFO::FONT)
return *n;
n = &n->next();
}
- return Null (NE_TYPEINFO);
+ return Null(NE_TYPEINFO);
}
protected:
@@ -444,7 +444,7 @@
inline const NE_RESOURCE_TABLE& get_resource_table () const
{
if (magic != 0x454E) // Only NE containers are support for now, NE == 0x454E
- return Null (NE_RESOURCE_TABLE);
+ return Null(NE_RESOURCE_TABLE);
return this+rsrctab;
}
diff --git a/src/hb-private.hh b/src/hb-private.hh
index e3ca2ae..b751cad 100644
--- a/src/hb-private.hh
+++ b/src/hb-private.hh
@@ -645,7 +645,7 @@
inline const Type& operator [] (unsigned int i) const
{
if (unlikely (i >= len))
- return Null (Type);
+ return Null(Type);
return arrayZ[i];
}
diff --git a/src/main.cc b/src/main.cc
index 514e34d..ca0fcc5 100644
--- a/src/main.cc
+++ b/src/main.cc
@@ -54,7 +54,7 @@
Sanitizer<OpenTypeFontFile> sanitizer;
hb_blob_t *font_blob = sanitizer.sanitize (blob);
const OpenTypeFontFile* sanitized = font_blob->as<OpenTypeFontFile> ();
- if (sanitized == &Null (OpenTypeFontFile))
+ if (sanitized == &Null(OpenTypeFontFile))
{
printf ("Sanitization of the file wasn't successful. Exit");
return 1;