From 9e7cff06290bcbfafb931837334dd619eb6c78f3 Mon Sep 17 00:00:00 2001 From: Chris Kennelly Date: Mon, 4 Mar 2024 12:37:26 -0800 Subject: [PATCH] Automated Code Change PiperOrigin-RevId: 612547901 --- benchmarks/benchmark.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/benchmarks/benchmark.cc b/benchmarks/benchmark.cc index 6d9660a87c..47efbcd8b7 100644 --- a/benchmarks/benchmark.cc +++ b/benchmarks/benchmark.cc @@ -214,7 +214,7 @@ static void BM_LoadAdsDescriptor_Proto2(benchmark::State& state) { for (auto file : serialized_files) { absl::string_view input(file.data, file.size); auto proto = - protobuf::Arena::CreateMessage(&arena); + protobuf::Arena::Create(&arena); bool ok = proto->ParseFrom(input) && pool.BuildFile(*proto) != nullptr; if (!ok) { @@ -292,7 +292,7 @@ struct Proto2Factory { template struct Proto2Factory { public: - P* GetProto() { return protobuf::Arena::CreateMessage

(&arena); } + P* GetProto() { return protobuf::Arena::Create

(&arena); } private: protobuf::Arena arena; @@ -302,7 +302,7 @@ template struct Proto2Factory { public: Proto2Factory() : arena(GetOptions()) {} - P* GetProto() { return protobuf::Arena::CreateMessage

(&arena); } + P* GetProto() { return protobuf::Arena::Create

(&arena); } private: protobuf::ArenaOptions GetOptions() {