Protobuf: fixed little typo in serialization of repeated fields

This commit is contained in:
dsavvinov
2016-07-20 15:45:55 +03:00
parent 8566ccdfe3
commit 322cd00867
2 changed files with 1 additions and 1 deletions
@@ -107,7 +107,7 @@ void FieldGenerator::generateSerializationCode(io::Printer *printer, bool isRead
// TODO: stub here, resolve name properly!
vars["builderType"] = getUnderlyingTypeGenerator().getFullType();
vars["initValue"] = getUnderlyingTypeGenerator().getInitValue();
printer->Print(vars, "val tmp: $builderType$ = $initValue$\n");
printer->Print(vars, "var tmp: $builderType$ = $initValue$\n");
singleFieldGen.simpleName = "tmp";
singleFieldGen.protoLabel = FieldDescriptor::LABEL_OPTIONAL;