fix: clang-tidy warnings, pt. 1 (#49083)

* fix: google-readability-casting warning about the uint32_t cast

* fix: modernize-use-equals-default warnings

* fix: readability-redundant-member-init warning

* fix: modernize-make-unique warnings

* fix: modernize-use-emplace

warning: use emplace_back instead of push_back

* refactor: address code review feedback
This commit is contained in:
Charles Kerr
2026-01-10 00:57:38 -06:00
committed by GitHub
parent d6a6312fc8
commit cf2e283332
7 changed files with 13 additions and 16 deletions

View File

@@ -52,7 +52,7 @@ namespace electron::api {
gin::DeprecatedWrapperInfo GlobalShortcut::kWrapperInfo = {
gin::kEmbedderNativeGin};
GlobalShortcut::GlobalShortcut() {}
GlobalShortcut::GlobalShortcut() = default;
GlobalShortcut::~GlobalShortcut() {
UnregisterAll();