Protobuf: fixed little typo in serialization of repeated fields
This commit is contained in:
Binary file not shown.
+1
-1
@@ -107,7 +107,7 @@ void FieldGenerator::generateSerializationCode(io::Printer *printer, bool isRead
|
|||||||
// TODO: stub here, resolve name properly!
|
// TODO: stub here, resolve name properly!
|
||||||
vars["builderType"] = getUnderlyingTypeGenerator().getFullType();
|
vars["builderType"] = getUnderlyingTypeGenerator().getFullType();
|
||||||
vars["initValue"] = getUnderlyingTypeGenerator().getInitValue();
|
vars["initValue"] = getUnderlyingTypeGenerator().getInitValue();
|
||||||
printer->Print(vars, "val tmp: $builderType$ = $initValue$\n");
|
printer->Print(vars, "var tmp: $builderType$ = $initValue$\n");
|
||||||
singleFieldGen.simpleName = "tmp";
|
singleFieldGen.simpleName = "tmp";
|
||||||
singleFieldGen.protoLabel = FieldDescriptor::LABEL_OPTIONAL;
|
singleFieldGen.protoLabel = FieldDescriptor::LABEL_OPTIONAL;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user