diff options
author | Erik Verbruggen <erik.verbruggen@nokia.com> | 2010-02-09 16:17:27 +0100 |
---|---|---|
committer | Erik Verbruggen <erik.verbruggen@nokia.com> | 2010-02-09 16:17:47 +0100 |
commit | 8ee2521fe53cec55534b079b0d5b21b6b028676f (patch) | |
tree | 8afab2f6ae0a98ecab4ebe7b55690126369a4a52 /src/shared/cplusplus | |
parent | f20841cad342623e05c9021c645d498aeadf9605 (diff) | |
download | qt-creator-8ee2521fe53cec55534b079b0d5b21b6b028676f.tar.gz |
Fixed tokenizing bug.
Diffstat (limited to 'src/shared/cplusplus')
-rw-r--r-- | src/shared/cplusplus/QtContextKeywords.cpp | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/src/shared/cplusplus/QtContextKeywords.cpp b/src/shared/cplusplus/QtContextKeywords.cpp index 1b1ff8bb8c..cee2eebe8e 100644 --- a/src/shared/cplusplus/QtContextKeywords.cpp +++ b/src/shared/cplusplus/QtContextKeywords.cpp @@ -147,11 +147,11 @@ static inline int classify10(const char *s) { if (s[2] == 'S') { if (s[3] == 'I') { if (s[4] == 'G') { - if (s[0] == 'N') { - if (s[1] == 'A') { - if (s[2] == 'B') { - if (s[3] == 'L') { - if (s[4] == 'E') { + if (s[5] == 'N') { + if (s[6] == 'A') { + if (s[7] == 'B') { + if (s[8] == 'L') { + if (s[9] == 'E') { return Token_DESIGNABLE; } } @@ -168,11 +168,11 @@ static inline int classify10(const char *s) { if (s[2] == 'R') { if (s[3] == 'I') { if (s[4] == 'P') { - if (s[0] == 'T') { - if (s[1] == 'A') { - if (s[2] == 'B') { - if (s[3] == 'L') { - if (s[4] == 'E') { + if (s[5] == 'T') { + if (s[6] == 'A') { + if (s[7] == 'B') { + if (s[8] == 'L') { + if (s[9] == 'E') { return Token_SCRIPTABLE; } } |