*result = mNext; NS_IF_ADDREF(*result);  mNext = nsnull; return NS_OK; }
nsresult rv; PRBool hasMore; rv = HasMoreElements(&hasMore); if (NS_FAILED(rv)) return rv;  *result = mNext; NS_IF_ADDREF(*result);  mNext = nsnull; ++mItemIndex; return NS_OK; }
		NS_IMETHOD GetNext(nsISupports **result) 		{			nsresult rv = NS_OK;			PRBool hasMore;			rv = HasMoreElements(&hasMore);			if (NS_FAILED(rv)) return rv;			*result = mNext;		// might return nsnull			NS_IF_ADDREF(*result);						mNext = nsnull;			return NS_OK;		}