mirror of
https://github.com/google/flatbuffers.git
synced 2026-06-25 12:18:39 +00:00
[C++] Use nullptr instead of 0 in generated headers (#6762)
This commit is contained in:
@@ -390,7 +390,7 @@ struct MonsterBuilder {
|
||||
|
||||
inline flatbuffers::Offset<Monster> CreateMonster(
|
||||
flatbuffers::FlatBufferBuilder &_fbb,
|
||||
const MyGame::Sample::Vec3 *pos = 0,
|
||||
const MyGame::Sample::Vec3 *pos = nullptr,
|
||||
int16_t mana = 150,
|
||||
int16_t hp = 100,
|
||||
flatbuffers::Offset<flatbuffers::String> name = 0,
|
||||
@@ -416,7 +416,7 @@ inline flatbuffers::Offset<Monster> CreateMonster(
|
||||
|
||||
inline flatbuffers::Offset<Monster> CreateMonsterDirect(
|
||||
flatbuffers::FlatBufferBuilder &_fbb,
|
||||
const MyGame::Sample::Vec3 *pos = 0,
|
||||
const MyGame::Sample::Vec3 *pos = nullptr,
|
||||
int16_t mana = 150,
|
||||
int16_t hp = 100,
|
||||
const char *name = nullptr,
|
||||
|
||||
Reference in New Issue
Block a user