Commit 604cd17e authored by Jose Dapena Paz's avatar Jose Dapena Paz Committed by Commit Bot

GCC: in perf result reporter, fix kInvalidCharacters initialization.

GCC fails to resolve NoDestructor of an initializer list for initializing
kInvalidCharacters. But if we use also initializer list for NoDestructor
it will work.

Bug: 819294
Change-Id: I22d80b8a8c345287152f6f033ef0d9e2f1ea9734
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2310413Reviewed-by: default avatarBrian Sheedy <bsheedy@chromium.org>
Commit-Queue: José Dapena Paz <jdapena@igalia.com>
Cr-Commit-Position: refs/heads/master@{#790890}
parent 83ab4c5f
......@@ -11,8 +11,8 @@
namespace {
// These characters mess with either the stdout parsing or the dashboard itself.
static const base::NoDestructor<std::vector<std::string>> kInvalidCharacters(
{"/", ":", "="});
static const base::NoDestructor<std::vector<std::string>> kInvalidCharacters{
{"/", ":", "="}};
void CheckForInvalidCharacters(const std::string& str) {
for (const auto& invalid : *kInvalidCharacters) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment