diff options
author | Sergio Campamá <kaipi@google.com> | 2016-07-15 15:04:01 -0700 |
---|---|---|
committer | Thomas Van Lenten <thomasvl@google.com> | 2016-07-15 18:04:01 -0400 |
commit | b99577c5ac3f3627f7eb11c866fad887920d1453 (patch) | |
tree | df449992104b20fd091e9ae7ac265cf62b72993b /objectivec/GPBUtilities.m | |
parent | f6d1d1a17e914270992d205fa8fa2b3cf4a0a9f7 (diff) | |
download | protobuf-b99577c5ac3f3627f7eb11c866fad887920d1453.tar.gz protobuf-b99577c5ac3f3627f7eb11c866fad887920d1453.tar.bz2 protobuf-b99577c5ac3f3627f7eb11c866fad887920d1453.zip |
Exposes the currently registered extensions for a message and removes the internal sortedExtensionsInUse
Diffstat (limited to 'objectivec/GPBUtilities.m')
-rw-r--r-- | objectivec/GPBUtilities.m | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/objectivec/GPBUtilities.m b/objectivec/GPBUtilities.m index 05375084..ee84fb45 100644 --- a/objectivec/GPBUtilities.m +++ b/objectivec/GPBUtilities.m @@ -1472,7 +1472,8 @@ static void AppendTextFormatForMessage(GPBMessage *message, NSUInteger fieldCount = fieldsArray.count; const GPBExtensionRange *extensionRanges = descriptor.extensionRanges; NSUInteger extensionRangesCount = descriptor.extensionRangesCount; - NSArray *activeExtensions = [message sortedExtensionsInUse]; + NSArray *activeExtensions = [[message extensionsCurrentlySet] + sortedArrayUsingSelector:@selector(compareByFieldNumber:)]; for (NSUInteger i = 0, j = 0; i < fieldCount || j < extensionRangesCount;) { if (i == fieldCount) { AppendTextFormatForMessageExtensionRange( |