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
Родитель c4c2f30786
Коммит d916530da7
1 изменённых файлов: 2 добавлений и 1 удалений

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

@ -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!