From e3e793d25bfa04f3003fdd09cb78c3ff4afc08e7 Mon Sep 17 00:00:00 2001 From: Bruno Pitrus Date: Thu, 28 Sep 2023 18:49:09 +0200 Subject: [PATCH] chore: remove invalid constexpr qualification (#40006) GetPathConstant calls base::internal::flat_tree::find(Key const&) const which is not constexpr. GCC 12 and earlier raise a compile error on this. --- shell/browser/api/electron_api_app.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shell/browser/api/electron_api_app.cc b/shell/browser/api/electron_api_app.cc index 675818dfb4ef..51fe3cffd571 100644 --- a/shell/browser/api/electron_api_app.cc +++ b/shell/browser/api/electron_api_app.cc @@ -433,7 +433,7 @@ IconLoader::IconSize GetIconSizeByString(const std::string& size) { } // Return the path constant from string. -constexpr int GetPathConstant(base::StringPiece name) { +int GetPathConstant(base::StringPiece name) { // clang-format off constexpr auto Lookup = base::MakeFixedFlatMapSorted({ {"appData", DIR_APP_DATA},