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 (more uriloader parts); r=bzbarsky

This commit is contained in:
Ehsan Akhgari 2012-06-14 21:45:35 -04:00
parent 5feb932e57
commit 8800291a29

View File

@ -46,6 +46,7 @@
#include "nsMimeTypes.h"
#include "nsDocLoader.h"
#include "mozilla/Attributes.h"
#include "mozilla/FunctionTimer.h"
#ifdef NS_FUNCTION_TIMER
@ -74,7 +75,7 @@ PRLogModuleInfo* nsURILoader::mLog = nsnull;
* Each instance remains alive until its target URL has been loaded
* (or aborted).
*/
class nsDocumentOpenInfo : public nsIStreamListener
class nsDocumentOpenInfo MOZ_FINAL : public nsIStreamListener
{
public:
// Needed for nsCOMPtr to work right... Don't call this!