diff --git a/content/base/src/DOMMatrix.h b/content/base/src/DOMMatrix.h index 7ae3541f043c..19d0ae21f00a 100644 --- a/content/base/src/DOMMatrix.h +++ b/content/base/src/DOMMatrix.h @@ -43,10 +43,6 @@ public: SetIsDOMBinding(); } - ~DOMMatrixReadOnly() - { - } - #define GetMatrixMember(entry2D, entry3D, default) \ { \ if (mMatrix3D) { \ @@ -135,6 +131,10 @@ protected: nsCOMPtr mParent; nsAutoPtr mMatrix2D; nsAutoPtr mMatrix3D; + + ~DOMMatrixReadOnly() + { + } private: DOMMatrixReadOnly() MOZ_DELETE; DOMMatrixReadOnly(const DOMMatrixReadOnly&) MOZ_DELETE; @@ -248,6 +248,8 @@ public: DOMMatrix* SetMatrixValue(const nsAString& aTransformList, ErrorResult& aRv); private: void Ensure3DMatrix(); + + ~DOMMatrix() {} }; } diff --git a/content/canvas/src/WebGLContext.h b/content/canvas/src/WebGLContext.h index 2e71468c61e0..d064ab517ff3 100644 --- a/content/canvas/src/WebGLContext.h +++ b/content/canvas/src/WebGLContext.h @@ -1385,7 +1385,6 @@ public: NS_DECL_NSIDOMEVENTLISTENER WebGLObserver(WebGLContext* aContext); - ~WebGLObserver(); void Destroy(); @@ -1396,6 +1395,8 @@ public: void UnregisterMemoryPressureEvent(); private: + ~WebGLObserver(); + WebGLContext* mContext; }; diff --git a/dom/datastore/DataStoreDB.cpp b/dom/datastore/DataStoreDB.cpp index 743dfc2ecc71..40255757549d 100644 --- a/dom/datastore/DataStoreDB.cpp +++ b/dom/datastore/DataStoreDB.cpp @@ -68,6 +68,8 @@ public: private: IDBDatabase* mDatabase; + + ~VersionChangeListener() {} }; NS_IMPL_ISUPPORTS(VersionChangeListener, nsIDOMEventListener) diff --git a/dom/workers/ServiceWorkerManager.cpp b/dom/workers/ServiceWorkerManager.cpp index 1e40cd7d8f3e..47c021f008a9 100644 --- a/dom/workers/ServiceWorkerManager.cpp +++ b/dom/workers/ServiceWorkerManager.cpp @@ -213,6 +213,9 @@ class ServiceWorkerUpdateInstance MOZ_FINAL : public nsISupports nsCOMPtr mWindow; bool mAborted; + + ~ServiceWorkerUpdateInstance() {} + public: NS_DECL_ISUPPORTS diff --git a/netwerk/system/mac/nsNetworkLinkService.h b/netwerk/system/mac/nsNetworkLinkService.h index 964c30600c67..caaf416883bc 100644 --- a/netwerk/system/mac/nsNetworkLinkService.h +++ b/netwerk/system/mac/nsNetworkLinkService.h @@ -19,11 +19,13 @@ public: NS_DECL_NSIOBSERVER nsNetworkLinkService(); - virtual ~nsNetworkLinkService(); nsresult Init(); nsresult Shutdown(); +protected: + virtual ~nsNetworkLinkService(); + private: bool mLinkUp; bool mStatusKnown; diff --git a/widget/xpwidgets/nsBaseClipboard.h b/widget/xpwidgets/nsBaseClipboard.h index d3db91702c91..c45f02840d82 100644 --- a/widget/xpwidgets/nsBaseClipboard.h +++ b/widget/xpwidgets/nsBaseClipboard.h @@ -25,7 +25,6 @@ class nsBaseClipboard : public nsIClipboard public: nsBaseClipboard(); - virtual ~nsBaseClipboard(); //nsISupports NS_DECL_ISUPPORTS @@ -34,6 +33,7 @@ public: NS_DECL_NSICLIPBOARD protected: + virtual ~nsBaseClipboard(); NS_IMETHOD SetNativeClipboardData ( int32_t aWhichClipboard ) = 0; NS_IMETHOD GetNativeClipboardData ( nsITransferable * aTransferable, int32_t aWhichClipboard ) = 0; diff --git a/xpcom/base/nsMemoryReporterManager.cpp b/xpcom/base/nsMemoryReporterManager.cpp index a6a7480d48c5..16341e973fce 100644 --- a/xpcom/base/nsMemoryReporterManager.cpp +++ b/xpcom/base/nsMemoryReporterManager.cpp @@ -890,6 +890,9 @@ public: return NS_OK; } + +private: + ~DMDReporter() {} }; NS_IMPL_ISUPPORTS(DMDReporter, nsIMemoryReporter) @@ -2009,6 +2012,9 @@ public: // Do nothing; the reporter has already reported to DMD. return NS_OK; } + +private: + ~DoNothingCallback() {} }; NS_IMPL_ISUPPORTS(DoNothingCallback, nsIHandleReportCallback)