chore: remove invalid constexpr qualification (#40006)
GetPathConstant calls base::internal::flat_tree<Key, GetKeyFromValue, KeyCompare, Container>::find(Key const&) const which is not constexpr. GCC 12 and earlier raise a compile error on this.
This commit is contained in:
parent
da92c9aa27
commit
e3e793d25b
1 changed files with 1 additions and 1 deletions
|
@ -433,7 +433,7 @@ IconLoader::IconSize GetIconSizeByString(const std::string& size) {
|
||||||
}
|
}
|
||||||
|
|
||||||
// Return the path constant from string.
|
// Return the path constant from string.
|
||||||
constexpr int GetPathConstant(base::StringPiece name) {
|
int GetPathConstant(base::StringPiece name) {
|
||||||
// clang-format off
|
// clang-format off
|
||||||
constexpr auto Lookup = base::MakeFixedFlatMapSorted<base::StringPiece, int>({
|
constexpr auto Lookup = base::MakeFixedFlatMapSorted<base::StringPiece, int>({
|
||||||
{"appData", DIR_APP_DATA},
|
{"appData", DIR_APP_DATA},
|
||||||
|
|
Loading…
Reference in a new issue