[C++] Use nullptr instead of 0 in generated headers (#6762)

This commit is contained in:
mogemimi
2021-08-03 05:41:15 +09:00
committed by GitHub
parent 775c6567d1
commit c39fc9dd9c
8 changed files with 14 additions and 12 deletions

View File

@@ -1947,7 +1947,7 @@ struct MonsterBuilder {
inline flatbuffers::Offset<Monster> CreateMonster(
flatbuffers::FlatBufferBuilder &_fbb,
const MyGame::Example::Vec3 *pos = 0,
const MyGame::Example::Vec3 *pos = nullptr,
int16_t mana = 150,
int16_t hp = 100,
flatbuffers::Offset<flatbuffers::String> name = 0,
@@ -2115,7 +2115,7 @@ struct Monster::Traits {
inline flatbuffers::Offset<Monster> CreateMonsterDirect(
flatbuffers::FlatBufferBuilder &_fbb,
const MyGame::Example::Vec3 *pos = 0,
const MyGame::Example::Vec3 *pos = nullptr,
int16_t mana = 150,
int16_t hp = 100,
const char *name = nullptr,