Abrogate protos::MessageAllocationError with hpb::MessageAllocationError

PiperOrigin-RevId: 665549987
pull/17877/head
Hong Shin 3 months ago committed by Copybara-Service
parent 737803eec4
commit 9a24fc999d
  1. 2
      hpb_generator/gen_repeated_fields.cc
  2. 1
      protos/protos.h

@ -147,7 +147,7 @@ void WriteRepeatedMessageAccessor(const protobuf::Descriptor* message,
absl::StatusOr<$1> $0::add_$2() {
auto new_msg = $3_add_$6(msg_, $5);
if (!new_msg) {
return ::protos::MessageAllocationError();
return ::hpb::MessageAllocationError();
}
return ::hpb::internal::CreateMessageProxy<$4>((upb_Message*)new_msg, $5);
}

@ -38,7 +38,6 @@ using hpb::HasExtension;
using hpb::SetExtension;
using hpb::Arena;
using hpb::MessageAllocationError;
using hpb::Ptr;
} // namespace protos
#endif

Loading…
Cancel
Save