Bug 119382 - attribute nsIIDPtr IID considered harmful - This patch makes it an error to declare an attribute named IID or a method named getIID. r=jband, sr=jst
git-svn-id: svn://10.0.0.236/trunk@114932 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -130,7 +130,7 @@ nsProxyEventClass::GetNewOrUsedClass(REFNSIID aIID)
|
||||
|
||||
PRBool isISupportsDescendent = PR_FALSE;
|
||||
nsID* iid;
|
||||
if(NS_SUCCEEDED(oldest->GetIID(&iid)))
|
||||
if(NS_SUCCEEDED(oldest->GetInterfaceIID(&iid)))
|
||||
{
|
||||
isISupportsDescendent = iid->Equals(NS_GET_IID(nsISupports));
|
||||
nsMemory::Free(iid);
|
||||
@@ -351,7 +351,7 @@ nsProxyEventClass::DelegatedQueryInterface(nsProxyEventObject* self,
|
||||
current = parent;
|
||||
|
||||
nsIID* iid;
|
||||
if(NS_SUCCEEDED(current->GetIID(&iid)) && iid)
|
||||
if(NS_SUCCEEDED(current->GetInterfaceIID(&iid)) && iid)
|
||||
{
|
||||
PRBool found = aIID.Equals(*iid);
|
||||
nsMemory::Free(iid);
|
||||
|
||||
Reference in New Issue
Block a user