mdb_pos pos; err = mCursor->NextRow(mEnv, &mCurrent, &pos); if (err != 0) return NS_ERROR_FAILURE;
while (1) { mdb_pos pos; err = mCursor->NextRow(mEnv, &mCurrent, &pos); if (err != 0) return NS_ERROR_FAILURE;   if (! mCurrent) break;   if (IsResult(mCurrent)) break;    mCurrent->CutStrongRef(mEnv); mCurrent = nsnull; }
nsMdbTableEnumerator::HasMoreElements(PRBool* _result){  if (! mCurrent) {    mdb_err err;    mdb_pos pos;    err = mCursor->NextRow(mEnv, &mCurrent, &pos);    if (err != 0) return NS_ERROR_FAILURE;  }  *_result = (mCurrent != nsnull);  return NS_OK;}