|
|
@ -299,8 +299,7 @@ MessageOptions StripLocalSourceRetentionOptions(const Descriptor& descriptor) { |
|
|
|
|
|
|
|
|
|
|
|
ExtensionRangeOptions StripLocalSourceRetentionOptions( |
|
|
|
ExtensionRangeOptions StripLocalSourceRetentionOptions( |
|
|
|
const Descriptor& descriptor, const Descriptor::ExtensionRange& range) { |
|
|
|
const Descriptor& descriptor, const Descriptor::ExtensionRange& range) { |
|
|
|
if (range.options_ == nullptr) return ExtensionRangeOptions{}; |
|
|
|
ExtensionRangeOptions options = range.options(); |
|
|
|
ExtensionRangeOptions options = *range.options_; |
|
|
|
|
|
|
|
ConvertToDynamicMessageAndStripOptions(options, GetPool(descriptor)); |
|
|
|
ConvertToDynamicMessageAndStripOptions(options, GetPool(descriptor)); |
|
|
|
return options; |
|
|
|
return options; |
|
|
|
} |
|
|
|
} |
|
|
|