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 toolkit parts); blanket-r=bzbarsky
This commit is contained in:
@@ -25,6 +25,7 @@
|
||||
#include "nsAutoPtr.h"
|
||||
#include "nsIMutableArray.h"
|
||||
#include "nsTArray.h"
|
||||
#include "mozilla/Attributes.h"
|
||||
|
||||
#include "nsWildCard.h"
|
||||
|
||||
@@ -34,7 +35,7 @@ class nsIDOMDataTransfer;
|
||||
{ 0x91, 0x10, 0x81, 0x46, 0x61, 0x4c, 0xa7, 0xf0 } }
|
||||
#define NS_FILECOMPLETE_CONTRACTID "@mozilla.org/autocomplete/search;1?name=file"
|
||||
|
||||
class nsFileResult : public nsIAutoCompleteResult
|
||||
class nsFileResult MOZ_FINAL : public nsIAutoCompleteResult
|
||||
{
|
||||
public:
|
||||
// aSearchString is the text typed into the autocomplete widget
|
||||
@@ -169,7 +170,7 @@ NS_IMETHODIMP nsFileResult::RemoveValueAt(PRInt32 rowIndex, bool removeFromDb)
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
class nsFileComplete : public nsIAutoCompleteSearch
|
||||
class nsFileComplete MOZ_FINAL : public nsIAutoCompleteSearch
|
||||
{
|
||||
public:
|
||||
NS_DECL_ISUPPORTS
|
||||
|
||||
Reference in New Issue
Block a user