Use nullptr instead of 0/NULL. (#1435)

* Use nullptr instead of 0/NULL.

* Update test-name-table.cc
This commit is contained in:
Bruce Mitchener 2018-12-01 10:22:49 +07:00 committed by Behdad Esfahbod
parent bb72de66dd
commit 09096aa89f
2 changed files with 3 additions and 3 deletions

View File

@ -328,7 +328,7 @@ struct hb_auto_trace_t<0, ret_t>
...) HB_PRINTF_FUNC(6, 7) {} ...) HB_PRINTF_FUNC(6, 7) {}
inline ret_t ret (ret_t v, inline ret_t ret (ret_t v,
const char *func HB_UNUSED = 0, const char *func HB_UNUSED = nullptr,
unsigned int line HB_UNUSED = 0) { return v; } unsigned int line HB_UNUSED = 0) { return v; }
}; };

View File

@ -24,7 +24,7 @@
* Google Author(s): Behdad Esfahbod * Google Author(s): Behdad Esfahbod
*/ */
#include "hb.h" #include "hb.hh"
#include "hb-ot.h" #include "hb-ot.h"
#include <stdlib.h> #include <stdlib.h>
@ -41,7 +41,7 @@ main (int argc, char **argv)
hb_blob_t *blob = hb_blob_create_from_file (argv[1]); hb_blob_t *blob = hb_blob_create_from_file (argv[1]);
hb_face_t *face = hb_face_create (blob, 0 /* first face */); hb_face_t *face = hb_face_create (blob, 0 /* first face */);
hb_blob_destroy (blob); hb_blob_destroy (blob);
blob = NULL; blob = nullptr;
unsigned int count; unsigned int count;
const hb_ot_name_entry_t *entries = hb_ot_name_list_names (face, &count); const hb_ot_name_entry_t *entries = hb_ot_name_list_names (face, &count);