Index: third_party/protobuf/src/google/protobuf/compiler/csharp/csharp_enum_field.cc |
diff --git a/third_party/protobuf/src/google/protobuf/compiler/csharp/csharp_enum_field.cc b/third_party/protobuf/src/google/protobuf/compiler/csharp/csharp_enum_field.cc |
index d38fb1ed2fcfe8d85e2cf1c214b7639bae09bd24..67c0b5961acfcf5351d54a6ff762064a31c6ab83 100644 |
--- a/third_party/protobuf/src/google/protobuf/compiler/csharp/csharp_enum_field.cc |
+++ b/third_party/protobuf/src/google/protobuf/compiler/csharp/csharp_enum_field.cc |
@@ -38,6 +38,7 @@ |
#include <google/protobuf/io/zero_copy_stream.h> |
#include <google/protobuf/compiler/csharp/csharp_helpers.h> |
+#include <google/protobuf/compiler/csharp/csharp_options.h> |
#include <google/protobuf/compiler/csharp/csharp_enum_field.h> |
namespace google { |
@@ -46,8 +47,8 @@ namespace compiler { |
namespace csharp { |
EnumFieldGenerator::EnumFieldGenerator(const FieldDescriptor* descriptor, |
- int fieldOrdinal) |
- : PrimitiveFieldGenerator(descriptor, fieldOrdinal) { |
+ int fieldOrdinal, const Options *options) |
+ : PrimitiveFieldGenerator(descriptor, fieldOrdinal, options) { |
} |
EnumFieldGenerator::~EnumFieldGenerator() { |
@@ -80,9 +81,9 @@ void EnumFieldGenerator::GenerateCodecCode(io::Printer* printer) { |
"pb::FieldCodec.ForEnum($tag$, x => (int) x, x => ($type_name$) x)"); |
} |
-EnumOneofFieldGenerator::EnumOneofFieldGenerator(const FieldDescriptor* descriptor, |
- int fieldOrdinal) |
- : PrimitiveOneofFieldGenerator(descriptor, fieldOrdinal) { |
+EnumOneofFieldGenerator::EnumOneofFieldGenerator( |
+ const FieldDescriptor* descriptor, int fieldOrdinal, const Options *options) |
+ : PrimitiveOneofFieldGenerator(descriptor, fieldOrdinal, options) { |
} |
EnumOneofFieldGenerator::~EnumOneofFieldGenerator() { |