diff options
Diffstat (limited to 'src/libs/cplusplus/SimpleLexer.h')
-rw-r--r-- | src/libs/cplusplus/SimpleLexer.h | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/libs/cplusplus/SimpleLexer.h b/src/libs/cplusplus/SimpleLexer.h index 8692e7975e..d4cba997e0 100644 --- a/src/libs/cplusplus/SimpleLexer.h +++ b/src/libs/cplusplus/SimpleLexer.h @@ -34,12 +34,13 @@ #include <cplusplus/Token.h> #include <QString> -#include <QList> +#include <QVector> namespace CPlusPlus { class SimpleLexer; class Token; +typedef QVector<Token> Tokens; class CPLUSPLUS_EXPORT SimpleLexer { @@ -55,18 +56,18 @@ public: bool endedJoined() const; - QList<Token> operator()(const QString &text, int state = 0); + Tokens operator()(const QString &text, int state = 0); int state() const { return _lastState; } - static int tokenAt(const QList<Token> &tokens, unsigned utf16charsOffset); + static int tokenAt(const Tokens &tokens, unsigned utf16charsOffset); static Token tokenAt(const QString &text, unsigned utf16charsOffset, int state, bool qtMocRunEnabled = false); - static int tokenBefore(const QList<Token> &tokens, unsigned utf16charsOffset); + static int tokenBefore(const Tokens &tokens, unsigned utf16charsOffset); private: int _lastState; |