refactor: replace deprecated DISALLOW_COPY_AND_ASSIGN (#31633)
This commit is contained in:
parent
2a2a1a834c
commit
65a980c673
231 changed files with 918 additions and 576 deletions
|
@ -19,6 +19,10 @@ class ViewsDelegate : public views::ViewsDelegate {
|
|||
ViewsDelegate();
|
||||
~ViewsDelegate() override;
|
||||
|
||||
// disable copy
|
||||
ViewsDelegate(const ViewsDelegate&) = delete;
|
||||
ViewsDelegate& operator=(const ViewsDelegate&) = delete;
|
||||
|
||||
protected:
|
||||
// views::ViewsDelegate:
|
||||
void SaveWindowPlacement(const views::Widget* window,
|
||||
|
@ -71,8 +75,6 @@ class ViewsDelegate : public views::ViewsDelegate {
|
|||
|
||||
base::WeakPtrFactory<ViewsDelegate> weak_factory_{this};
|
||||
#endif
|
||||
|
||||
DISALLOW_COPY_AND_ASSIGN(ViewsDelegate);
|
||||
};
|
||||
|
||||
} // namespace electron
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue