bootstat: avoid vector<const T>

A container of const T uses std::allocator<const T>, which was an
undocumented libc++ extension that has been removed.

See https://github.com/llvm/llvm-project/pull/96319.

Bug: 349681543
Test: m bootstat
Change-Id: Id338f439aa4caf8c9f3c6fc15faef19b1edc4368
This commit is contained in:
Ryan Prichard 2024-06-27 23:08:13 -07:00
parent 8d9b33d649
commit d8f5fd4edb

View file

@ -499,7 +499,7 @@ int32_t BootReasonStrToEnum(const std::string& boot_reason) {
}
// Canonical list of supported primary reboot reasons.
const std::vector<const std::string> knownReasons = {
const std::vector<std::string> knownReasons = {
// clang-format off
// kernel
"watchdog",