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:
Ehsan Akhgari
2012-07-23 17:26:48 -04:00
parent 53639e8b26
commit 192a7cf460
3 changed files with 7 additions and 4 deletions

View File

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