mirror of
https://github.com/google/flatbuffers.git
synced 2026-06-04 20:48:59 +00:00
[C++] Use nullptr instead of 0 in generated headers (#6762)
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user