forked from qt-creator/qt-creator
C++: Use getter functions of Token
They are already inlined. Now it's easier to find read-only accesses. Change-Id: I9aaeca3bc5860e3a20a536a2484925e4334c005f Reviewed-by: Erik Verbruggen <erik.verbruggen@digia.com>
This commit is contained in:
@@ -67,7 +67,7 @@ public:
|
||||
const Token &tokenAt(unsigned index) const
|
||||
{ return _tokens && index < tokenCount() ? (*_tokens)[index] : nullToken; }
|
||||
|
||||
int tokenKind(unsigned index) const { return tokenAt(index).f.kind; }
|
||||
int tokenKind(unsigned index) const { return tokenAt(index).kind(); }
|
||||
const char *spell(unsigned index) const;
|
||||
|
||||
unsigned commentCount() const;
|
||||
|
||||
Reference in New Issue
Block a user