diff options
author | kenton@google.com <kenton@google.com@630680e5-0e50-0410-840e-4b1c322b438d> | 2009-04-16 22:43:40 +0000 |
---|---|---|
committer | kenton@google.com <kenton@google.com@630680e5-0e50-0410-840e-4b1c322b438d> | 2009-04-16 22:43:40 +0000 |
commit | eb26a1efdef3f1f5e77807d456a08f3c76cc5207 (patch) | |
tree | 467213c4581c8a18683cd730dddad7951cf2c366 /src/google/protobuf/compiler/cpp/cpp_string_field.cc | |
parent | e59427a62cdd93ac8b18396d19f6dc74e979df95 (diff) |
Commit Michael Poole's patch for explicitly constructing all class fields in
generated code.
Diffstat (limited to 'src/google/protobuf/compiler/cpp/cpp_string_field.cc')
-rw-r--r-- | src/google/protobuf/compiler/cpp/cpp_string_field.cc | 2 |
1 files changed, 1 insertions, 1 deletions
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:: |