0

arrayify: Prefer constexpr

This CL is intended to be trivial. It marks the return from `std::to_array` as
`constexpr`. This CL is a split of a naive textual search-and-replace under:

google_apis/gcm

This CL was uploaded by git cl split.

Change-Id: I834a602864ffa41a7f6d3ceafd22fca7ae0929cf
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6298312
Auto-Submit: Kalvin Lee <kdlee@chromium.org>
Commit-Queue: Kalvin Lee <kdlee@chromium.org>
Reviewed-by: David Roger <droger@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1424556}
This commit is contained in:
Kalvin Lee
2025-02-25 08:06:20 -08:00
committed by Chromium LUCI CQ
parent f33b703645
commit b430632ea2

@ -26,7 +26,7 @@ namespace {
// Type names corresponding to MCSProtoTags. Useful for identifying what type
// of MCS protobuf is contained within a google::protobuf::MessageLite object.
// WARNING: must match the order in MCSProtoTag.
const auto kProtoNames = std::to_array<const char*>({
constexpr auto kProtoNames = std::to_array<const char*>({
"mcs_proto.HeartbeatPing",
"mcs_proto.HeartbeatAck",
"mcs_proto.LoginRequest",