nsLocalFile *newFile = new nsLocalFile(mFSRefsArray[mArrayIndex], nsString());
nsLocalFile *newFile = new nsLocalFile;
        NS_IMETHOD HasMoreElements(PRBool *result)         {          if (mNext == nsnull) {            if (mArrayIndex >= mArrayCnt) {              ItemCount actualCnt;              OSErr err = ::FSGetCatalogInfoBulk(mIterator,                                           kRequestCountPerIteration,                                           &actualCnt,                                           nsnull,                                           kFSCatInfoNone,                                           nsnull,                                           mFSRefsArray,                                           nsnull,                                           nsnull);                          if (err == noErr || err == errFSNoMoreItems) {                mArrayCnt = actualCnt;                mArrayIndex = 0;              }            }            if (mArrayIndex < mArrayCnt) {              nsLocalFile *newFile = new nsLocalFile(mFSRefsArray[mArrayIndex], nsString());              if (!newFile)                return NS_ERROR_OUT_OF_MEMORY;              mArrayIndex++;              mNext = newFile;            }           }          *result = mNext != nsnull;          return NS_OK;        }