fix compiler warnings
git-svn-id: svn://10.0.0.236/trunk@87968 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
fd68ac5b8a
commit
5192e16712
@ -132,7 +132,7 @@ class nsWindowEnumerator : public nsISimpleEnumerator {
|
||||
|
||||
public:
|
||||
nsWindowEnumerator(nsWindowWatcher *inWatcher);
|
||||
~nsWindowEnumerator();
|
||||
virtual ~nsWindowEnumerator();
|
||||
NS_IMETHOD HasMoreElements(PRBool *retval);
|
||||
NS_IMETHOD GetNext(nsISupports **retval);
|
||||
|
||||
@ -1402,11 +1402,6 @@ nsWindowWatcher::AttachArguments(nsIDOMWindow *aWindow,
|
||||
if (argc == 0)
|
||||
return;
|
||||
|
||||
JSContext *cx = GetExtantJSContext(aWindow);
|
||||
NS_ASSERTION(cx, "window missing JSContext");
|
||||
if (!cx)
|
||||
return;
|
||||
|
||||
// copy the extra parameters into a JS Array and attach it
|
||||
nsCOMPtr<nsIScriptGlobalObject> scriptGlobal(do_QueryInterface(aWindow));
|
||||
if (scriptGlobal) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user