Fixed empty structs generating bad constructor.
This was fixed previously here:
5fd0fefab6
but somehow got undone in intermediate refactors.
Change-Id: I86e45a3f96f67a2b3d84d44081403baef6798921
This commit is contained in:
parent
00b741e5fb
commit
7dd5cfb510
|
@ -2497,6 +2497,7 @@ class CppGenerator : public BaseGenerator {
|
|||
}
|
||||
}
|
||||
|
||||
if (!arg_list.empty()) {
|
||||
code_.SetValue("ARG_LIST", arg_list);
|
||||
code_.SetValue("INIT_LIST", init_list);
|
||||
code_ += " {{STRUCT_NAME}}({{ARG_LIST}})";
|
||||
|
@ -2512,6 +2513,7 @@ class CppGenerator : public BaseGenerator {
|
|||
}
|
||||
}
|
||||
code_ += " }";
|
||||
}
|
||||
|
||||
// Generate accessor methods of the form:
|
||||
// type name() const { return flatbuffers::EndianScalar(name_); }
|
||||
|
|
Loading…
Reference in New Issue