diff options
author | liujisi@google.com <liujisi@google.com@630680e5-0e50-0410-840e-4b1c322b438d> | 2012-12-05 23:47:43 +0000 |
---|---|---|
committer | liujisi@google.com <liujisi@google.com@630680e5-0e50-0410-840e-4b1c322b438d> | 2012-12-05 23:47:43 +0000 |
commit | 2273ee403b567da66493eff500d6896d52c087d5 (patch) | |
tree | c37bae37fa805efea6ba12424c5d665503842c8d /src/google/protobuf/compiler/cpp/cpp_string_field.cc | |
parent | 0c995c930067241b40b10b0b01504c784cade03e (diff) |
Add java options to plugin proto and rollback the r450
Diffstat (limited to 'src/google/protobuf/compiler/cpp/cpp_string_field.cc')
-rw-r--r-- | src/google/protobuf/compiler/cpp/cpp_string_field.cc | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/google/protobuf/compiler/cpp/cpp_string_field.cc b/src/google/protobuf/compiler/cpp/cpp_string_field.cc index 81d06549..9c0911ac 100644 --- a/src/google/protobuf/compiler/cpp/cpp_string_field.cc +++ b/src/google/protobuf/compiler/cpp/cpp_string_field.cc @@ -251,8 +251,7 @@ void StringFieldGenerator:: GenerateShutdownCode(io::Printer* printer) const { if (!descriptor_->default_value_string().empty()) { printer->Print(variables_, - "delete $classname$::$default_variable$;\n" - "$classname$::$default_variable$ = NULL;\n"); + "delete $classname$::$default_variable$;\n"); } } |