aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorThomas Van Lenten <thomasvl@google.com>2016-07-18 13:01:35 -0400
committerGitHub <noreply@github.com>2016-07-18 13:01:35 -0400
commitb6a620da134b174a90a26550f91c75c8e324288a (patch)
treed89dbfcbe91c79ccbfd98ba871fe69fa03f457cb /src
parentb99577c5ac3f3627f7eb11c866fad887920d1453 (diff)
parent2e98ed5d17e2e9a8cb557cc762883b792bc4a342 (diff)
downloadprotobuf-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 'src')
-rw-r--r--src/google/protobuf/compiler/objectivec/objectivec_oneof.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/google/protobuf/compiler/objectivec/objectivec_oneof.cc b/src/google/protobuf/compiler/objectivec/objectivec_oneof.cc
index 44bafd7f..3dda903b 100644
--- a/src/google/protobuf/compiler/objectivec/objectivec_oneof.cc
+++ b/src/google/protobuf/compiler/objectivec/objectivec_oneof.cc
@@ -119,7 +119,7 @@ void OneofGenerator::GenerateClearFunctionImplementation(io::Printer* printer) {
variables_,
"void $owning_message_class$_Clear$capitalized_name$OneOfCase($owning_message_class$ *message) {\n"
" GPBDescriptor *descriptor = [message descriptor];\n"
- " GPBOneofDescriptor *oneof = descriptor->oneofs_[$raw_index$];\n"
+ " GPBOneofDescriptor *oneof = [descriptor.oneofs objectAtIndex:$raw_index$];\n"
" GPBMaybeClearOneof(message, oneof, $index$, 0);\n"
"}\n");
}