|
|
|
@ -1185,10 +1185,8 @@ class RepeatedPtrField final : private internal::RepeatedPtrFieldBase { |
|
|
|
|
// Gets the arena on which this RepeatedPtrField stores its elements.
|
|
|
|
|
inline Arena* GetArena(); |
|
|
|
|
|
|
|
|
|
#ifndef PROTOBUF_FUTURE_REMOVE_CONST_REPEATEDFIELD_GETARENA_API |
|
|
|
|
ABSL_DEPRECATED("This will be removed in a future release") |
|
|
|
|
inline Arena* GetArena() const; |
|
|
|
|
#endif // !PROTOBUF_FUTURE_REMOVE_CONST_REPEATEDFIELD_GETARENA_API
|
|
|
|
|
|
|
|
|
|
// For internal use only.
|
|
|
|
|
//
|
|
|
|
@ -1554,12 +1552,10 @@ inline Arena* RepeatedPtrField<Element>::GetArena() { |
|
|
|
|
return RepeatedPtrFieldBase::GetArena(); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
#ifndef PROTOBUF_FUTURE_REMOVE_CONST_REPEATEDFIELD_GETARENA_API |
|
|
|
|
template <typename Element> |
|
|
|
|
inline Arena* RepeatedPtrField<Element>::GetArena() const { |
|
|
|
|
return RepeatedPtrFieldBase::GetArena(); |
|
|
|
|
} |
|
|
|
|
#endif // !PROTOBUF_FUTURE_REMOVE_CONST_REPEATEDFIELD_GETARENA_API
|
|
|
|
|
|
|
|
|
|
template <typename Element> |
|
|
|
|
inline Arena* RepeatedPtrField<Element>::GetOwningArena() const { |
|
|
|
|