diff options
author | Thomas Van Lenten <thomasvl@google.com> | 2016-07-18 13:01:35 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-07-18 13:01:35 -0400 |
commit | b6a620da134b174a90a26550f91c75c8e324288a (patch) | |
tree | d89dbfcbe91c79ccbfd98ba871fe69fa03f457cb /objectivec | |
parent | b99577c5ac3f3627f7eb11c866fad887920d1453 (diff) | |
parent | 2e98ed5d17e2e9a8cb557cc762883b792bc4a342 (diff) | |
download | protobuf-b6a620da134b174a90a26550f91c75c8e324288a.tar.gz protobuf-b6a620da134b174a90a26550f91c75c8e324288a.tar.bz2 protobuf-b6a620da134b174a90a26550f91c75c8e324288a.zip |
Merge pull request #1801 from thomasvl/oneof_framework_build_issues
Use public methods to fetch oneofs in generated code.
Diffstat (limited to 'objectivec')
-rw-r--r-- | objectivec/google/protobuf/Struct.pbobjc.m | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/objectivec/google/protobuf/Struct.pbobjc.m b/objectivec/google/protobuf/Struct.pbobjc.m index 538faab3..8ea1f124 100644 --- a/objectivec/google/protobuf/Struct.pbobjc.m +++ b/objectivec/google/protobuf/Struct.pbobjc.m @@ -237,7 +237,7 @@ void SetGPBValue_NullValue_RawValue(GPBValue *message, int32_t value) { void GPBValue_ClearKindOneOfCase(GPBValue *message) { GPBDescriptor *descriptor = [message descriptor]; - GPBOneofDescriptor *oneof = descriptor->oneofs_[0]; + GPBOneofDescriptor *oneof = [descriptor.oneofs objectAtIndex:0]; GPBMaybeClearOneof(message, oneof, -1, 0); } #pragma mark - GPBListValue |