Add MOZ_OVERRIDE to CrossOriginWrapper functions. No bug (but sort of r=luke from bug 708735 :-) )

--HG--
extra : rebase_source : d0bdbc8c031457a3a9f7f8cc82d141e0d83883f4
This commit is contained in:
Jeff Walden 2011-12-15 14:32:25 -05:00
parent 23331bfab8
commit 9d7141da5c

View File

@ -40,6 +40,8 @@
#ifndef __CrossOriginWrapper_h__
#define __CrossOriginWrapper_h__
#include "mozilla/Attributes.h"
#include "jsapi.h"
#include "jswrapper.h"
@ -50,8 +52,8 @@ class NoWaiverWrapper : public js::CrossCompartmentWrapper {
NoWaiverWrapper(uintN flags);
virtual ~NoWaiverWrapper();
virtual bool enter(JSContext *cx, JSObject *wrapper, jsid id, Action act, bool *bp);
virtual void leave(JSContext *cx, JSObject *wrapper);
virtual bool enter(JSContext *cx, JSObject *wrapper, jsid id, Action act, bool *bp) MOZ_OVERRIDE;
virtual void leave(JSContext *cx, JSObject *wrapper) MOZ_OVERRIDE;
static NoWaiverWrapper singleton;
};
@ -62,15 +64,15 @@ class CrossOriginWrapper : public NoWaiverWrapper {
virtual ~CrossOriginWrapper();
virtual bool getPropertyDescriptor(JSContext *cx, JSObject *wrapper, jsid id,
bool set, js::PropertyDescriptor *desc);
bool set, js::PropertyDescriptor *desc) MOZ_OVERRIDE;
virtual bool getOwnPropertyDescriptor(JSContext *cx, JSObject *wrapper, jsid id,
bool set, js::PropertyDescriptor *desc);
bool set, js::PropertyDescriptor *desc) MOZ_OVERRIDE;
virtual bool get(JSContext *cx, JSObject *wrapper, JSObject *receiver, jsid id,
js::Value *vp);
js::Value *vp) MOZ_OVERRIDE;
virtual bool call(JSContext *cx, JSObject *wrapper, uintN argc, js::Value *vp);
virtual bool call(JSContext *cx, JSObject *wrapper, uintN argc, js::Value *vp) MOZ_OVERRIDE;
virtual bool construct(JSContext *cx, JSObject *wrapper,
uintN argc, js::Value *argv, js::Value *rval);
uintN argc, js::Value *argv, js::Value *rval) MOZ_OVERRIDE;
static CrossOriginWrapper singleton;
};