chore: replace absl::optional<T> with std::optional<T> (#40928)
* chore: replace absl::optional<T> with std::optional<T> * IWYU
This commit is contained in:
parent
fac964ac0d
commit
892c9d78a3
129 changed files with 419 additions and 397 deletions
|
@ -5,8 +5,9 @@
|
|||
#ifndef ELECTRON_SHELL_COMMON_KEYBOARD_UTIL_H_
|
||||
#define ELECTRON_SHELL_COMMON_KEYBOARD_UTIL_H_
|
||||
|
||||
#include <optional>
|
||||
|
||||
#include "base/strings/string_piece.h"
|
||||
#include "third_party/abseil-cpp/absl/types/optional.h"
|
||||
#include "ui/events/keycodes/keyboard_codes.h"
|
||||
|
||||
namespace electron {
|
||||
|
@ -15,7 +16,7 @@ namespace electron {
|
|||
// for example + and /, set it in |shifted_char|.
|
||||
// pressed.
|
||||
ui::KeyboardCode KeyboardCodeFromStr(base::StringPiece str,
|
||||
absl::optional<char16_t>* shifted_char);
|
||||
std::optional<char16_t>* shifted_char);
|
||||
|
||||
} // namespace electron
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue