else if (aIID.Equals(nsIRDFRemoteDataSource::GetIID())) { *aResult = NS_STATIC_CAST(nsIRDFRemoteDataSource*, this); }
nsBookmarksService::QueryInterface(REFNSIID aIID, void **aResult){    NS_PRECONDITION(aResult != nsnull, "null ptr");	if (! aResult)		return NS_ERROR_NULL_POINTER;	if (aIID.Equals(nsIBookmarksService::GetIID()) ||        aIID.Equals(kISupportsIID))	{		*aResult = NS_STATIC_CAST(nsIBookmarksService*, this);	}    else if (aIID.Equals(nsIRDFDataSource::GetIID())) {        *aResult = NS_STATIC_CAST(nsIRDFDataSource*, this);    }    else {        *aResult = nsnull;        return NS_NOINTERFACE;    }    NS_ADDREF(this);    return NS_OK;}