nsCOMPtr<nsIFile> file; nsresult rv = GetNextFile(getter_AddRefs(file)); if (NS_FAILED(rv))
nsresult rv; if (!mDir || !mEntry) { *_retval = nsnull; return NS_OK; }  nsCOMPtr<nsILocalFile> file = new nsLocalFile(); if (!file) return NS_ERROR_OUT_OF_MEMORY;  if (NS_FAILED(rv = file->InitWithPath(mParentPath)) || NS_FAILED(rv = file->Append(mEntry->d_name))) {
nsDirEnumeratorUnix::GetNext(nsISupports **_retval){    nsCOMPtr<nsIFile> file;    nsresult rv = GetNextFile(getter_AddRefs(file));    if (NS_FAILED(rv))        return rv;    NS_IF_ADDREF(*_retval = file);    return NS_OK;}