Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:obsgeek0:branches:devel:tools:ide:vscode:dev
nodejs-electron
electron_api_app-GetPathConstant-non-constexpr....
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File electron_api_app-GetPathConstant-non-constexpr.patch of Package nodejs-electron
[ 8128s] ../../electron/shell/browser/api/electron_api_app.cc: In function 'constexpr int electron::api::{anonymous}::GetPathConstant(base::StringPiece)': [ 8128s] ../../electron/shell/browser/api/electron_api_app.cc:507:33: error: call to non-'constexpr' function 'base::internal::flat_tree<Key, GetKeyFromValue, KeyCompare, Container>::const_iterator base::internal::flat_tree<Key, GetKeyFromValue, KeyCompare, Container>::find(const Key&) const [with Key = base::BasicStringPiece<char>; GetKeyFromValue = base::internal::GetFirst; KeyCompare = std::less<void>; Container = std::array<std::pair<const base::BasicStringPiece<char>, int>, 18>; const_iterator = const std::pair<const base::BasicStringPiece<char>, int>*]' [ 8128s] 507 | const auto* iter = Lookup.find(name); [ 8128s] | ~~~~~~~~~~~^~~~~~ [ 8128s] In file included from ../../base/containers/flat_set.h:11, [ 8128s] from ../../base/containers/id_map.h:20, [ 8128s] from ../../content/public/browser/render_process_host.h:16: [ 8128s] ../../base/containers/flat_tree.h:984:6: note: 'base::internal::flat_tree<Key, GetKeyFromValue, KeyCompare, Container>::const_iterator base::internal::flat_tree<Key, GetKeyFromValue, KeyCompare, Container>::find(const Key&) const [with Key = base::BasicStringPiece<char>; GetKeyFromValue = base::internal::GetFirst; KeyCompare = std::less<void>; Container = std::array<std::pair<const base::BasicStringPiece<char>, int>, 18>; const_iterator = const std::pair<const base::BasicStringPiece<char>, int>*]' declared here [ 8128s] 984 | auto flat_tree<Key, GetKeyFromValue, KeyCompare, Container>::find( [ 8128s] | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ --- src/electron/shell/browser/api/electron_api_app.cc.old 2023-08-31 17:37:41.267399900 +0000 +++ src/electron/shell/browser/api/electron_api_app.cc 2023-09-03 10:12:16.007253000 +0000 @@ -474,7 +474,7 @@ IconLoader::IconSize GetIconSizeByString } // 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<base::StringPiece, int>({ {"appData", DIR_APP_DATA},
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor