mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-25 22:01:30 +00:00
Bug 243621 Standardize QueryInterface without throw
r=neil sr=darin
This commit is contained in:
parent
7b6a93e7f8
commit
fd28dba6de
@ -506,10 +506,10 @@ sampleJSTransaction.prototype = {
|
||||
return false;
|
||||
},
|
||||
|
||||
QueryInterface: function(aUID, theResult)
|
||||
QueryInterface: function(aIID, theResult)
|
||||
{
|
||||
if (aUID.equals(Components.interfaces.nsITransaction) ||
|
||||
aUID.equals(Components.interfaces.nsISupports))
|
||||
if (aIID.equals(Components.interfaces.nsITransaction) ||
|
||||
aIID.equals(Components.interfaces.nsISupports))
|
||||
return this;
|
||||
|
||||
Components.returnCode = Components.results.NS_ERROR_NO_INTERFACE;
|
||||
|
Loading…
Reference in New Issue
Block a user