Bug 1056410 - s/final/MOZ_FINAL. a=bustage
--- a/js/xpconnect/src/xpcprivate.h
+++ b/js/xpconnect/src/xpcprivate.h
@@ -239,20 +239,20 @@ static inline bool IS_WN_REFLECTOR(JSObj
****************************************************************************
***************************************************************************/
// We have a general rule internally that getters that return addref'd interface
// pointer generally do so using an 'out' parm. When interface pointers are
// returned as function call result values they are not addref'd. Exceptions
// to this rule are noted explicitly.
-class nsXPConnect final : public nsIXPConnect,
- public nsIThreadObserver,
- public nsSupportsWeakReference,
- public nsIJSRuntimeService
+class nsXPConnect MOZ_FINAL : public nsIXPConnect,
+ public nsIThreadObserver,
+ public nsSupportsWeakReference,
+ public nsIJSRuntimeService
{
public:
// all the interface method declarations...
NS_DECL_ISUPPORTS
NS_DECL_NSIXPCONNECT
NS_DECL_NSITHREADOBSERVER
NS_DECL_NSIJSRUNTIMESERVICE
@@ -1971,17 +1971,17 @@ private:
};
void* xpc_GetJSPrivate(JSObject* obj);
/***************************************************************************/
// XPCWrappedNative the wrapper around one instance of a native xpcom object
// to be used from JavaScript.
-class XPCWrappedNative final : public nsIXPConnectWrappedNative
+class XPCWrappedNative MOZ_FINAL : public nsIXPConnectWrappedNative
{
public:
NS_DECL_CYCLE_COLLECTING_ISUPPORTS
NS_DECL_NSIXPCONNECTJSOBJECTHOLDER
NS_DECL_NSIXPCONNECTWRAPPEDNATIVE
NS_DECL_CYCLE_COLLECTION_CLASS(XPCWrappedNative)
@@ -2285,17 +2285,17 @@ public:
NS_DEFINE_STATIC_IID_ACCESSOR(nsIXPCWrappedJSClass,
NS_IXPCONNECT_WRAPPED_JS_CLASS_IID)
/*************************/
// nsXPCWrappedJSClass represents the sharable factored out common code and
// data for nsXPCWrappedJS instances for the same interface type.
-class nsXPCWrappedJSClass final : public nsIXPCWrappedJSClass
+class nsXPCWrappedJSClass MOZ_FINAL : public nsIXPCWrappedJSClass
{
// all the interface method declarations...
NS_DECL_ISUPPORTS
NS_IMETHOD DebugDump(int16_t depth);
public:
static already_AddRefed<nsXPCWrappedJSClass>
GetNewOrUsed(JSContext* cx,