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:
parent
7fa7d01f7c
commit
69f15df805
|
@ -275,8 +275,7 @@ void cFile::Close() //throw(eFile)
|
|||
mpData->mpCurrStream = NULL;
|
||||
}
|
||||
|
||||
|
||||
mpData->mFileName.empty();
|
||||
mpData->mFileName.clear();
|
||||
}
|
||||
|
||||
bool cFile::IsOpen(void) const
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue