Use nullptr, not NULL.
This commit is contained in:
parent
07885e65ad
commit
a89573770b
|
@ -120,7 +120,7 @@ struct BinSearchArrayOf
|
||||||
else
|
else
|
||||||
return p;
|
return p;
|
||||||
}
|
}
|
||||||
return NULL;
|
return nullptr;
|
||||||
}
|
}
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
|
|
@ -106,7 +106,7 @@ _hb_buffer_deserialize_glyphs_json (hb_buffer_t *buffer,
|
||||||
const char *p = buf, *pe = buf + buf_len;
|
const char *p = buf, *pe = buf + buf_len;
|
||||||
|
|
||||||
/* Ensure we have positions. */
|
/* Ensure we have positions. */
|
||||||
(void) hb_buffer_get_glyph_positions (buffer, NULL);
|
(void) hb_buffer_get_glyph_positions (buffer, nullptr);
|
||||||
|
|
||||||
while (p < pe && ISSPACE (*p))
|
while (p < pe && ISSPACE (*p))
|
||||||
p++;
|
p++;
|
||||||
|
@ -115,7 +115,7 @@ _hb_buffer_deserialize_glyphs_json (hb_buffer_t *buffer,
|
||||||
*end_ptr = ++p;
|
*end_ptr = ++p;
|
||||||
}
|
}
|
||||||
|
|
||||||
const char *tok = NULL;
|
const char *tok = nullptr;
|
||||||
int cs;
|
int cs;
|
||||||
hb_glyph_info_t info = {0};
|
hb_glyph_info_t info = {0};
|
||||||
hb_glyph_position_t pos = {0};
|
hb_glyph_position_t pos = {0};
|
||||||
|
|
|
@ -100,7 +100,7 @@ _hb_buffer_deserialize_glyphs_text (hb_buffer_t *buffer,
|
||||||
const char *p = buf, *pe = buf + buf_len;
|
const char *p = buf, *pe = buf + buf_len;
|
||||||
|
|
||||||
/* Ensure we have positions. */
|
/* Ensure we have positions. */
|
||||||
(void) hb_buffer_get_glyph_positions (buffer, NULL);
|
(void) hb_buffer_get_glyph_positions (buffer, nullptr);
|
||||||
|
|
||||||
while (p < pe && ISSPACE (*p))
|
while (p < pe && ISSPACE (*p))
|
||||||
p++;
|
p++;
|
||||||
|
@ -109,7 +109,7 @@ _hb_buffer_deserialize_glyphs_text (hb_buffer_t *buffer,
|
||||||
*end_ptr = ++p;
|
*end_ptr = ++p;
|
||||||
}
|
}
|
||||||
|
|
||||||
const char *eof = pe, *tok = NULL;
|
const char *eof = pe, *tok = nullptr;
|
||||||
int cs;
|
int cs;
|
||||||
hb_glyph_info_t info = {0};
|
hb_glyph_info_t info = {0};
|
||||||
hb_glyph_position_t pos = {0};
|
hb_glyph_position_t pos = {0};
|
||||||
|
|
Loading…
Reference in New Issue