Bug 758992 - Make the classes which use the XPCOM nsISupports implementation macros final, to avoid the warning about deleting using a pointer to a base class with virtual functions and no virtual dtor (docshell parts); r=bzbarsky

This commit is contained in:
Ehsan Akhgari
2012-07-10 23:59:52 -04:00
parent 5ea51bd841
commit b06058c68f
7 changed files with 20 additions and 13 deletions

View File

@@ -78,6 +78,7 @@
#include "mozilla/Preferences.h"
#include "mozilla/Telemetry.h"
#include "mozilla/AutoRestore.h"
#include "mozilla/Attributes.h"
// we want to explore making the document own the load group
// so we can associate the document URI with the load group.
@@ -408,9 +409,9 @@ IsSameHost(nsIURI *uri1, nsIURI *uri2)
return host1.Equals(host2);
}
class nsPingListener : public nsIStreamListener
, public nsIInterfaceRequestor
, public nsIChannelEventSink
class nsPingListener MOZ_FINAL : public nsIStreamListener
, public nsIInterfaceRequestor
, public nsIChannelEventSink
{
public:
NS_DECL_ISUPPORTS
@@ -7995,7 +7996,7 @@ namespace
// Callback used by CopyFavicon to inform the favicon service that one URI
// (mNewURI) has the same favicon URI (OnComplete's aFaviconURI) as another.
class nsCopyFaviconCallback : public nsIFaviconDataCallback
class nsCopyFaviconCallback MOZ_FINAL : public nsIFaviconDataCallback
{
public:
NS_DECL_ISUPPORTS