[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

@@ -171,7 +171,7 @@ inline flatbuffers::Offset<TableInFirstNS> CreateTableInFirstNS(
NamespaceA::NamespaceB::EnumInNestedNS foo_enum = NamespaceA::NamespaceB::EnumInNestedNS_A,
NamespaceA::NamespaceB::UnionInNestedNS foo_union_type = NamespaceA::NamespaceB::UnionInNestedNS_NONE,
flatbuffers::Offset<void> foo_union = 0,
const NamespaceA::NamespaceB::StructInNestedNS *foo_struct = 0) {
const NamespaceA::NamespaceB::StructInNestedNS *foo_struct = nullptr) {
TableInFirstNSBuilder builder_(_fbb);
builder_.add_foo_struct(foo_struct);
builder_.add_foo_union(foo_union);