Bug 765381 - Make the destructors on nsHtml5ElementName and nsHtml5AttributeName virtual to avoid warnings in clang. r=ehsan

--HG--
extra : rebase_source : 3c2558dfa8ef5389b2acd97f419d2276d4269a8d
This commit is contained in:
Henri Sivonen 2012-07-13 15:04:11 +03:00
parent 400344b1e5
commit 1afc6bf0fd
4 changed files with 4 additions and 4 deletions

View File

@ -442,7 +442,7 @@ public final class AttributeName
/**
* The C++ destructor.
*/
@SuppressWarnings("unused") private void destructor() {
@SuppressWarnings("unused") @Virtual private void destructor() {
Portability.deleteArray(local);
}

View File

@ -167,7 +167,7 @@ public final class ElementName
// Be sure to release the local name
}
@SuppressWarnings("unused") private void destructor() {
@SuppressWarnings("unused") @Virtual private void destructor() {
}
@Virtual public ElementName cloneElementName(Interner interner) {

View File

@ -86,7 +86,7 @@ class nsHtml5AttributeName
static nsHtml5AttributeName* createAttributeName(nsIAtom* name);
public:
virtual void release();
~nsHtml5AttributeName();
virtual ~nsHtml5AttributeName();
virtual nsHtml5AttributeName* cloneAttributeName(nsHtml5AtomTable* interner);
PRInt32 getUri(PRInt32 mode);
nsIAtom* getLocal(PRInt32 mode);

View File

@ -76,7 +76,7 @@ class nsHtml5ElementName
nsHtml5ElementName(nsIAtom* name);
public:
virtual void release();
~nsHtml5ElementName();
virtual ~nsHtml5ElementName();
virtual nsHtml5ElementName* cloneElementName(nsHtml5AtomTable* interner);
static nsHtml5ElementName* ELT_A;
static nsHtml5ElementName* ELT_B;