refactor: replace deprecated DISALLOW_COPY_AND_ASSIGN (#31633)

This commit is contained in:
Milan Burda 2021-11-03 12:41:45 +01:00 committed by GitHub
parent 2a2a1a834c
commit 65a980c673
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
231 changed files with 918 additions and 576 deletions

View file

@ -26,6 +26,10 @@ class MenuBar : public views::AccessiblePaneView,
MenuBar(NativeWindow* window, RootView* root_view);
~MenuBar() override;
// disable copy
MenuBar(const MenuBar&) = delete;
MenuBar& operator=(const MenuBar&) = delete;
// Replaces current menu with a new one.
void SetMenu(ElectronMenuModel* menu_model);
@ -84,8 +88,6 @@ class MenuBar : public views::AccessiblePaneView,
RootView* root_view_;
ElectronMenuModel* menu_model_ = nullptr;
bool accelerator_installed_ = false;
DISALLOW_COPY_AND_ASSIGN(MenuBar);
};
} // namespace electron