Bug 348748 - Remove casts from java/. r=bsmedberg on the script, a=NPOTB+no-functionality-change

git-svn-id: svn://10.0.0.236/trunk@233910 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
jwalden%mit.edu
2007-09-05 07:25:16 +00:00
parent 7303269435
commit 3cb05eec64
9 changed files with 30 additions and 30 deletions

View File

@@ -87,19 +87,19 @@ NS_IMETHODIMP nsScriptablePeer::QueryInterface(const nsIID& aIID, void** aInstan
return NS_ERROR_NULL_POINTER;
if(aIID.Equals(kISimplePluginIID)) {
*aInstancePtr = NS_STATIC_CAST(nsISimplePlugin*, this);
*aInstancePtr = static_cast<nsISimplePlugin*>(this);
AddRef();
return NS_OK;
}
if(aIID.Equals(kIClassInfoIID)) {
*aInstancePtr = NS_STATIC_CAST(nsIClassInfo*, this);
*aInstancePtr = static_cast<nsIClassInfo*>(this);
AddRef();
return NS_OK;
}
if(aIID.Equals(kISupportsIID)) {
*aInstancePtr = NS_STATIC_CAST(nsISupports*,(NS_STATIC_CAST(nsISimplePlugin*, this)));
*aInstancePtr = static_cast<nsISupports*>((static_cast<nsISimplePlugin*>(this)));
AddRef();
return NS_OK;
}