build: match upstream with unsafe buffer paths (#45853)
* build: match upstream with unsafe buffer paths * Don't assume STL iterators are pointers Refs https://issues.chromium.org/issues/328308661 * chore: spanify process_singleton_win.cc
This commit is contained in:
parent
d987bee007
commit
041ada1586
13 changed files with 44 additions and 126 deletions
|
@ -108,7 +108,7 @@ CodeAndShiftedChar KeyboardCodeFromKeyIdentifier(const std::string_view str) {
|
|||
{"volumeup", {ui::VKEY_VOLUME_UP, {}}},
|
||||
});
|
||||
|
||||
if (auto* const iter = Lookup.find(str); iter != Lookup.end())
|
||||
if (auto iter = Lookup.find(str); iter != Lookup.end())
|
||||
return iter->second;
|
||||
|
||||
return {ui::VKEY_UNKNOWN, {}};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue