fix: modernize-use-equals-default warnings (#44946)
fix: use '= default' to define a trivial destructor [modernize-use-equals-default] Co-authored-by: trop[bot] <37223003+trop[bot]@users.noreply.github.com> Co-authored-by: Charles Kerr <charles@charleskerr.com>
This commit is contained in:
parent
e1d9df224c
commit
d1fe7d2227
14 changed files with 64 additions and 64 deletions
|
@ -37,7 +37,7 @@ class ElectronMenuModel : public ui::SimpleMenuModel {
|
|||
|
||||
class Delegate : public ui::SimpleMenuModel::Delegate {
|
||||
public:
|
||||
~Delegate() override {}
|
||||
~Delegate() override = default;
|
||||
|
||||
virtual bool GetAcceleratorForCommandIdWithParams(
|
||||
int command_id,
|
||||
|
@ -63,7 +63,7 @@ class ElectronMenuModel : public ui::SimpleMenuModel {
|
|||
|
||||
class Observer : public base::CheckedObserver {
|
||||
public:
|
||||
~Observer() override {}
|
||||
~Observer() override = default;
|
||||
|
||||
// Notifies the menu will open.
|
||||
virtual void OnMenuWillShow() {}
|
||||
|
|
|
@ -16,7 +16,7 @@ namespace electron {
|
|||
|
||||
class InspectableWebContentsDelegate {
|
||||
public:
|
||||
virtual ~InspectableWebContentsDelegate() {}
|
||||
virtual ~InspectableWebContentsDelegate() = default;
|
||||
|
||||
// Requested by WebContents of devtools.
|
||||
virtual void DevToolsReloadPage() {}
|
||||
|
|
|
@ -14,7 +14,7 @@ namespace electron {
|
|||
|
||||
class InspectableWebContentsViewDelegate {
|
||||
public:
|
||||
virtual ~InspectableWebContentsViewDelegate() {}
|
||||
virtual ~InspectableWebContentsViewDelegate() = default;
|
||||
|
||||
virtual void DevToolsFocused() {}
|
||||
virtual void DevToolsOpened() {}
|
||||
|
|
|
@ -41,7 +41,7 @@ class TrayIconObserver : public base::CheckedObserver {
|
|||
virtual void OnMouseMoved(const gfx::Point& location, int modifiers) {}
|
||||
|
||||
protected:
|
||||
~TrayIconObserver() override {}
|
||||
~TrayIconObserver() override = default;
|
||||
};
|
||||
|
||||
} // namespace electron
|
||||
|
|
|
@ -50,7 +50,7 @@ class AutofillPopupChildView : public views::View {
|
|||
AutofillPopupChildView& operator=(const AutofillPopupChildView&) = delete;
|
||||
|
||||
private:
|
||||
~AutofillPopupChildView() override {}
|
||||
~AutofillPopupChildView() override = default;
|
||||
|
||||
// views::Views implementation
|
||||
void GetAccessibleNodeData(ui::AXNodeData* node_data) override;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue