Commit 30984f7b authored by Simon Giesecke's avatar Simon Giesecke
Browse files

Bug 1613985 - Use default for equivalent-to-default constructors/destructors in xpcom. r=froydnj

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

--HG--
extra : moz-landing-system : lando
parent 066ea869
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -306,7 +306,7 @@ NS_IMPL_ISUPPORTS(LowEventsReporter, nsIMemoryReporter)
 * purge here.
 */
class nsJemallocFreeDirtyPagesRunnable final : public nsIRunnable {
  ~nsJemallocFreeDirtyPagesRunnable() {}
  ~nsJemallocFreeDirtyPagesRunnable() = default;

#if defined(XP_WIN)
  void OptimizeSystemHeap();
@@ -354,7 +354,7 @@ void nsJemallocFreeDirtyPagesRunnable::OptimizeSystemHeap() {
 * cleaning up dirty unused pages held by jemalloc.
 */
class nsMemoryPressureWatcher final : public nsIObserver {
  ~nsMemoryPressureWatcher() {}
  ~nsMemoryPressureWatcher() = default;

 public:
  NS_DECL_ISUPPORTS
+1 −1
Original line number Diff line number Diff line
@@ -59,7 +59,7 @@ namespace ClearOnShutdown_Internal {
class ShutdownObserver : public LinkedListElement<ShutdownObserver> {
 public:
  virtual void Shutdown() = 0;
  virtual ~ShutdownObserver() {}
  virtual ~ShutdownObserver() = default;
};

template <class SmartPtr>
+1 −1
Original line number Diff line number Diff line
@@ -194,7 +194,7 @@ class PromiseJobRunnable final : public MicroTaskRunnable {
    }
  }

  virtual ~PromiseJobRunnable() {}
  virtual ~PromiseJobRunnable() = default;

 protected:
  MOZ_CAN_RUN_SCRIPT
+1 −1
Original line number Diff line number Diff line
@@ -32,7 +32,7 @@ class JSObjectHolder final : public nsISupports {
  JSObject* GetJSObject() { return mJSObject; }

 private:
  ~JSObjectHolder() {}
  ~JSObjectHolder() = default;

  JS::PersistentRooted<JSObject*> mJSObject;
};
+1 −1
Original line number Diff line number Diff line
@@ -119,7 +119,7 @@ static void LoadExistingPrefs() {
  }
}

LogModulePrefWatcher::LogModulePrefWatcher() {}
LogModulePrefWatcher::LogModulePrefWatcher() = default;

void LogModulePrefWatcher::RegisterPrefWatcher() {
  RefPtr<LogModulePrefWatcher> prefWatcher = new LogModulePrefWatcher();
Loading