Imported Upstream version 1.7.6
[platform/upstream/harfbuzz.git] / src / hb-gobject-structs.cc
index fef0024..a96c358 100644 (file)
@@ -58,7 +58,7 @@ hb_gobject_##name##_get_type (void) \
        static hb_##name##_t *_hb_##name##_reference (const hb_##name##_t *l) \
        { \
          hb_##name##_t *c = (hb_##name##_t *) calloc (1, sizeof (hb_##name##_t)); \
-         if (unlikely (!c)) return NULL; \
+         if (unlikely (!c)) return nullptr; \
          *c = *l; \
          return c; \
        } \