Skip to content

Commit

Permalink
Abrogate protos::internal::ExtensionIdentifier in favor of hpb::inter…
Browse files Browse the repository at this point in the history
…nal::ExtensionIdentifier

PiperOrigin-RevId: 670690046
  • Loading branch information
honglooker authored and copybara-github committed Sep 3, 2024
1 parent 1abef5b commit 1f237ef
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
4 changes: 2 additions & 2 deletions hpb_generator/gen_extensions.cc
Original file line number Diff line number Diff line change
Expand Up @@ -67,14 +67,14 @@ void WriteExtensionIdentifier(const protobuf::FieldDescriptor* ext,
if (ext->extension_scope()) {
output(
R"cc(
const ::protos::internal::ExtensionIdentifier<$0, $3> $4::$2(&$1);
const hpb::internal::ExtensionIdentifier<$0, $3> $4::$2(&$1);
)cc",
ContainingTypeName(ext), mini_table_name, ext->name(),
CppTypeParameterName(ext), ClassName(ext->extension_scope()));
} else {
output(
R"cc(
const ::protos::internal::ExtensionIdentifier<$0, $3> $2(&$1);
const hpb::internal::ExtensionIdentifier<$0, $3> $2(&$1);
)cc",
ContainingTypeName(ext), mini_table_name, ext->name(),
CppTypeParameterName(ext));
Expand Down
1 change: 0 additions & 1 deletion protos/protos.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
#include "google/protobuf/hpb/hpb.h"
namespace protos {
namespace internal {
using hpb::internal::ExtensionIdentifier;
using hpb::internal::GetInternalMsg;
using hpb::internal::PrivateAccess;
using hpb::internal::Serialize;
Expand Down

0 comments on commit 1f237ef

Please sign in to comment.