Fix compile warnings. b=311646 r=dveditz sr=benjamin
git-svn-id: svn://10.0.0.236/trunk@182332 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -181,13 +181,10 @@ nsInstallTrigger::HandleContent(const char * aContentType,
|
||||
|
||||
|
||||
// Get the global object of the target window for StartSoftwareUpdate
|
||||
nsIScriptGlobalObject* globalObject;
|
||||
nsCOMPtr<nsIScriptGlobalObjectOwner> globalObjectOwner =
|
||||
do_QueryInterface(aWindowContext);
|
||||
if ( globalObjectOwner )
|
||||
{
|
||||
globalObject = globalObjectOwner->GetScriptGlobalObject();
|
||||
}
|
||||
nsIScriptGlobalObject* globalObject =
|
||||
globalObjectOwner ? globalObjectOwner->GetScriptGlobalObject() : nsnull;
|
||||
if ( !globalObject )
|
||||
return NS_ERROR_INVALID_ARG;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user