Bug 1613985 - Use default for equivalent-to-default constructors/destructors in dom/notification. r=smaug

Depends on D66021

Differential Revision: https://phabricator.services.mozilla.com/D66022

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Simon Giesecke 2020-03-09 15:17:39 +00:00
Родитель 06dddea97a
Коммит 8ebceba535
2 изменённых файлов: 7 добавлений и 7 удалений

Просмотреть файл

@ -110,7 +110,7 @@ class ScopeCheckingGetCallback : public nsINotificationStorageCallback {
NS_IMETHOD Done() override = 0;
protected:
virtual ~ScopeCheckingGetCallback() {}
virtual ~ScopeCheckingGetCallback() = default;
nsTArray<NotificationStrings> mStrings;
};
@ -153,7 +153,7 @@ class NotificationStorageCallback final : public ScopeCheckingGetCallback {
}
private:
virtual ~NotificationStorageCallback() {}
virtual ~NotificationStorageCallback() = default;
nsCOMPtr<nsIGlobalObject> mWindow;
RefPtr<Promise> mPromise;
@ -450,7 +450,7 @@ class NotificationTask : public Runnable {
Run() override;
protected:
virtual ~NotificationTask() {}
virtual ~NotificationTask() = default;
UniquePtr<NotificationRef> mNotificationRef;
NotificationAction mAction;
@ -994,7 +994,7 @@ class ServiceWorkerNotificationObserver final : public nsIObserver {
}
private:
~ServiceWorkerNotificationObserver() {}
~ServiceWorkerNotificationObserver() = default;
const nsString mScope;
const nsString mID;
@ -1732,7 +1732,7 @@ class WorkerGetCallback final : public ScopeCheckingGetCallback {
}
private:
~WorkerGetCallback() {}
~WorkerGetCallback() = default;
};
NS_IMPL_ISUPPORTS(WorkerGetCallback, nsINotificationStorageCallback)
@ -1789,7 +1789,7 @@ class WorkerGetRunnable final : public Runnable {
}
private:
~WorkerGetRunnable() {}
~WorkerGetRunnable() = default;
};
// static

Просмотреть файл

@ -21,7 +21,7 @@ class ServiceWorkerClient;
class NotificationEvent final : public ExtendableEvent {
protected:
explicit NotificationEvent(EventTarget* aOwner);
~NotificationEvent() {}
~NotificationEvent() = default;
public:
NS_DECL_ISUPPORTS_INHERITED