зеркало из https://github.com/mozilla/gecko-dev.git
fix compiler warnings
This commit is contained in:
Родитель
2885f191ea
Коммит
223c2c7772
|
@ -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) {
|
||||
|
|
Загрузка…
Ссылка в новой задаче