diff options
Diffstat (limited to 'src/libs/cplusplus/SimpleLexer.cpp')
-rw-r--r-- | src/libs/cplusplus/SimpleLexer.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libs/cplusplus/SimpleLexer.cpp b/src/libs/cplusplus/SimpleLexer.cpp index 60ce47cd8f..7fa9677bda 100644 --- a/src/libs/cplusplus/SimpleLexer.cpp +++ b/src/libs/cplusplus/SimpleLexer.cpp @@ -129,14 +129,14 @@ QList<SimpleToken> SimpleLexer::operator()(const QString &text, int state) break; SimpleToken simpleTk; - simpleTk._kind = int(tk.kind); + simpleTk._kind = int(tk.f.kind); simpleTk._position = int(lex.tokenOffset()); simpleTk._length = int(lex.tokenLength()); simpleTk._text = text.midRef(simpleTk._position, simpleTk._length); lex.setScanAngleStringLiteralTokens(false); - if (tk.newline && tk.is(T_POUND)) + if (tk.f.newline && tk.is(T_POUND)) inPreproc = true; else if (inPreproc && tokens.size() == 1 && simpleTk.is(T_IDENTIFIER) && simpleTk.text() == QLatin1String("include")) |