refactor: run clang-tidy (#20231)
* refactor: clang-tidy modernize-use-nullptr * refactor: clang-tidy modernize-use-equals-default * refactor: clang-tidy modernize-make-unique * refactor: omit nullptr arg from unique_ptr.reset() As per comment by @miniak
This commit is contained in:
parent
660e566201
commit
2b316f3843
93 changed files with 261 additions and 223 deletions
|
@ -22,8 +22,9 @@ namespace electron {
|
|||
SubmenuButton::SubmenuButton(const base::string16& title,
|
||||
views::MenuButtonListener* menu_button_listener,
|
||||
const SkColor& background_color)
|
||||
: views::MenuButton(gfx::RemoveAcceleratorChar(title, '&', NULL, NULL),
|
||||
menu_button_listener),
|
||||
: views::MenuButton(
|
||||
gfx::RemoveAcceleratorChar(title, '&', nullptr, nullptr),
|
||||
menu_button_listener),
|
||||
background_color_(background_color) {
|
||||
#if defined(OS_LINUX)
|
||||
// Dont' use native style border.
|
||||
|
@ -40,7 +41,7 @@ SubmenuButton::SubmenuButton(const base::string16& title,
|
|||
color_utils::BlendTowardMaxContrast(background_color_, 0x81));
|
||||
}
|
||||
|
||||
SubmenuButton::~SubmenuButton() {}
|
||||
SubmenuButton::~SubmenuButton() = default;
|
||||
|
||||
std::unique_ptr<views::InkDropRipple> SubmenuButton::CreateInkDropRipple()
|
||||
const {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue