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 (rdf parts); r=bsmedberg

--HG--
extra : rebase_source : f6017aa79ed6e43e1d5b3cd78854c25945726602
This commit is contained in:
Ehsan Akhgari 2012-06-12 23:42:36 -04:00
Родитель 76065eeef2
Коммит 039891f691
3 изменённых файлов: 7 добавлений и 4 удалений

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

@ -17,6 +17,7 @@
#include "nsTArray.h"
#include "rdf.h"
#include "rdfutil.h"
#include "mozilla/Attributes.h"
#include "rdfIDataSource.h"
@ -1008,7 +1009,7 @@ nsRDFXMLSerializer::SerializeEpilogue(nsIOutputStream* aStream)
return rdf_BlockingWrite(aStream, NS_LITERAL_CSTRING("</RDF:RDF>\n"));
}
class QNameCollector : public rdfITripleVisitor {
class QNameCollector MOZ_FINAL : public rdfITripleVisitor {
public:
NS_DECL_ISUPPORTS
NS_DECL_RDFITRIPLEVISITOR

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

@ -19,8 +19,9 @@
#include "nsIRDFResource.h"
#include "nsIRDFLiteral.h"
#include "mozilla/Attributes.h"
class TriplesVisitor : public rdfITripleVisitor
class TriplesVisitor MOZ_FINAL : public rdfITripleVisitor
{
public:
TriplesVisitor(nsIOutputStream* aOut) : mOut(aOut) {}
@ -96,7 +97,7 @@ TriplesVisitor::Visit(nsIRDFNode *aSubject, nsIRDFResource *aPredicate,
return mOut->Write(".\n", 2, &wroteCount);
}
class rdfTriplesSerializer : public rdfISerializer
class rdfTriplesSerializer MOZ_FINAL : public rdfISerializer
{
public:
NS_DECL_ISUPPORTS

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

@ -14,12 +14,13 @@
#include "nsCOMPtr.h"
#include "nsString.h"
#include "nsCycleCollectionParticipant.h"
#include "mozilla/Attributes.h"
#if defined(XP_UNIX) || defined(XP_OS2) || defined(XP_WIN)
#define USE_NC_EXTENSION
#endif
class FileSystemDataSource : public nsIRDFDataSource
class FileSystemDataSource MOZ_FINAL : public nsIRDFDataSource
{
public:
NS_DECL_CYCLE_COLLECTING_ISUPPORTS