chore: use auto to avoid repeating type (#26113)
This commit is contained in:
parent
f714556a12
commit
4be10523e8
25 changed files with 38 additions and 48 deletions
|
@ -39,7 +39,7 @@ void MenuDelegate::RunMenu(ElectronMenuModel* model,
|
|||
id_ = button->tag();
|
||||
adapter_ = std::make_unique<MenuModelAdapter>(model);
|
||||
|
||||
views::MenuItemView* item = new views::MenuItemView(this);
|
||||
auto* item = new views::MenuItemView(this);
|
||||
static_cast<MenuModelAdapter*>(adapter_.get())->BuildMenu(item);
|
||||
|
||||
menu_runner_ = std::make_unique<views::MenuRunner>(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue