fix two warnings that show up with Apple clang++ & -std=c++2a, including one where we called empty() on a string (uselessly) instead of the clear() that was obviously intended

This commit is contained in:
Brian Cox 2019-08-03 18:55:11 -07:00
parent 7fa7d01f7c
commit 69f15df805
2 changed files with 3 additions and 4 deletions

View File

@ -275,8 +275,7 @@ void cFile::Close() //throw(eFile)
mpData->mpCurrStream = NULL;
}
mpData->mFileName.empty();
mpData->mFileName.clear();
}
bool cFile::IsOpen(void) const

View File

@ -831,8 +831,8 @@ yy_scan::yylex()
yyst = yy_next[yybase];
yy_jammed: ;
state[++i] = (yy_state_t) yyst;
} while (!(yyst == (unsigned int)yy_endst || YY_INTERACTIVE &&
yy_base[yyst] > yy_nxtmax && yy_default[yyst] == yy_endst));
} while (!(yyst == (unsigned int)yy_endst || (YY_INTERACTIVE &&
(yy_base[yyst] > yy_nxtmax) && (yy_default[yyst] == yy_endst))));
YY_DEBUG("<stopped %d, i = %d>\n", yyst, i);
if (yyst != (unsigned int)yy_endst)