m Simplify Tag operator char*

pull/2878/head
Behdad Esfahbod 4 years ago
parent 021a1725ed
commit 8b2f9adf29
  1. 4
      src/hb-open-type.hh

@ -170,8 +170,8 @@ struct Tag : HBUINT32
{
Tag& operator = (hb_tag_t i) { HBUINT32::operator= (i); return *this; }
/* What the char* converters return is NOT nul-terminated. Print using "%.4s" */
operator const char* () const { return reinterpret_cast<const char *> (&this->v); }
operator char* () { return reinterpret_cast<char *> (&this->v); }
operator const char* () const { return reinterpret_cast<const char *> (this); }
operator char* () { return reinterpret_cast<char *> (this); }
public:
DEFINE_SIZE_STATIC (4);
};

Loading…
Cancel
Save