From 8b4b618fc48d542a27a192c24a1ed475d3259d10 Mon Sep 17 00:00:00 2001 From: Reijo Tomperi Date: Sun, 16 Aug 2009 23:50:00 +0300 Subject: [PATCH] Use _str.length() == 1, instead of _str[1] == 0 --- src/token.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/token.cpp b/src/token.cpp index 8d66608f3..cf6da104d 100644 --- a/src/token.cpp +++ b/src/token.cpp @@ -421,7 +421,7 @@ bool Token::Match(const Token *tok, const char pattern[], unsigned int varid) } // [.. => 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; bool chrFound = false;