diff options
author | Yilun Chong <yilunchong@google.com> | 2018-05-30 17:06:45 -0700 |
---|---|---|
committer | Yilun Chong <yilunchong@google.com> | 2018-05-30 17:06:45 -0700 |
commit | 193af9f4c1ebfeec4c9322fc4bbb2a513267d345 (patch) | |
tree | 27bef6ab58d7f91f655e305df0ef9ca4004427d3 /benchmarks/util/protoc-gen-gogoproto.cc | |
parent | d69fd037f8c585c6b99cc063226504e3309d1496 (diff) | |
download | protobuf-193af9f4c1ebfeec4c9322fc4bbb2a513267d345.tar.gz protobuf-193af9f4c1ebfeec4c9322fc4bbb2a513267d345.tar.bz2 protobuf-193af9f4c1ebfeec4c9322fc4bbb2a513267d345.zip |
Add proto2 to proto3 util
Diffstat (limited to 'benchmarks/util/protoc-gen-gogoproto.cc')
-rw-r--r-- | benchmarks/util/protoc-gen-gogoproto.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/benchmarks/util/protoc-gen-gogoproto.cc b/benchmarks/util/protoc-gen-gogoproto.cc index bfa6a5e5..9c1b3d04 100644 --- a/benchmarks/util/protoc-gen-gogoproto.cc +++ b/benchmarks/util/protoc-gen-gogoproto.cc @@ -12,7 +12,7 @@ using google::protobuf::FileDescriptor; using google::protobuf::DescriptorPool; using google::protobuf::io::Printer; using google::protobuf::util::SchemaGroupStripper; -using google::protobuf::util::SchemaAddZeroEnumValue; +using google::protobuf::util::EnumScrubber; namespace google { namespace protobuf { @@ -74,7 +74,7 @@ class GoGoProtoGenerator : public CodeGenerator { file->CopyTo(&new_file); SchemaGroupStripper::StripFile(file, &new_file); - SchemaAddZeroEnumValue enum_scrubber; + EnumScrubber enum_scrubber; enum_scrubber.ScrubFile(&new_file); string filename = file->name(); |