mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-26 06:11:37 +00:00
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:
parent
400344b1e5
commit
1afc6bf0fd
@ -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);
|
||||
}
|
||||
|
||||
|
@ -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) {
|
||||
|
@ -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);
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user