mirror of
https://github.com/google/flatbuffers.git
synced 2026-06-02 12:05:50 +00:00
[Dart] Getting tests/DartTest.sh to work on master. (#5915)
* Fixed refractoring issue in reflection/generate_code.sh. Also, mv deletes the original file, so I don't need to clean it up manually in that case. * Fixed Dart Tests by removing code-gen for included files.
This commit is contained in:
@@ -2854,7 +2854,7 @@ class CppGenerator : public BaseGenerator {
|
||||
*code_ptr += " (void)padding" + NumToString((*id)++) + "__;";
|
||||
}
|
||||
|
||||
void GenStructConstructor(const StructDef& struct_def) {
|
||||
void GenStructConstructor(const StructDef &struct_def) {
|
||||
std::string arg_list;
|
||||
std::string init_list;
|
||||
int padding_id = 0;
|
||||
@@ -2869,8 +2869,7 @@ class CppGenerator : public BaseGenerator {
|
||||
}
|
||||
const auto member_name = Name(field) + "_";
|
||||
const auto arg_name = "_" + Name(field);
|
||||
const auto arg_type =
|
||||
GenTypeGet(field_type, " ", "const ", " &", true);
|
||||
const auto arg_type = GenTypeGet(field_type, " ", "const ", " &", true);
|
||||
|
||||
if (it != first) { arg_list += ", "; }
|
||||
arg_list += arg_type;
|
||||
|
||||
Reference in New Issue
Block a user