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:
dbradley%netscape.com
2002-02-19 14:48:00 +00:00
parent 93a46ee258
commit 4c972e2fbe
16 changed files with 48 additions and 23 deletions

View File

@@ -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);