From eb26a1efdef3f1f5e77807d456a08f3c76cc5207 Mon Sep 17 00:00:00 2001 From: "kenton@google.com" Date: Thu, 16 Apr 2009 22:43:40 +0000 Subject: Commit Michael Poole's patch for explicitly constructing all class fields in generated code. --- src/google/protobuf/compiler/cpp/cpp_string_field.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/google/protobuf/compiler/cpp/cpp_string_field.cc') diff --git a/src/google/protobuf/compiler/cpp/cpp_string_field.cc b/src/google/protobuf/compiler/cpp/cpp_string_field.cc index 200e3d68..51c5c6f5 100644 --- a/src/google/protobuf/compiler/cpp/cpp_string_field.cc +++ b/src/google/protobuf/compiler/cpp/cpp_string_field.cc @@ -361,7 +361,7 @@ GenerateSwappingCode(io::Printer* printer) const { void RepeatedStringFieldGenerator:: GenerateInitializer(io::Printer* printer) const { - // Not needed for repeated fields. + printer->Print(variables_, ",\n$name$_()"); } void RepeatedStringFieldGenerator:: -- cgit v1.2.3