Use _str.length() == 1, instead of _str[1] == 0

This commit is contained in:
Reijo Tomperi 2009-08-16 23:50:00 +03:00
parent 36a8e8afba
commit 8b4b618fc4
1 changed files with 1 additions and 1 deletions

View File

@ -421,7 +421,7 @@ bool Token::Match(const Token *tok, const char pattern[], unsigned int varid)
} }
// [.. => search for a one-character token.. // [.. => search for a one-character token..
else if (p[0] == '[' && chrInFirstWord(p, ']') && tok->_str[1] == 0) else if (p[0] == '[' && chrInFirstWord(p, ']') && tok->_str.length() == 1)
{ {
const char *temp = p + 1; const char *temp = p + 1;
bool chrFound = false; bool chrFound = false;