aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/cppeditor/cpphighlighter.cpp
diff options
context:
space:
mode:
authorhjk <hjk121@nokiamail.com>2014-11-06 09:35:29 +0100
committerhjk <hjk121@nokiamail.com>2014-11-06 16:13:58 +0100
commitca151d07fa6d97039fed95dcabe206fce41f5769 (patch)
tree77b2e92a9fc01a074d3debdb0300d28337b8cf19 /src/plugins/cppeditor/cpphighlighter.cpp
parentcb1d040c327f5c8ed8a188e6227ef0e131a3271b (diff)
CPlusPlus: Use QVector<Token> instead of QList
Better suited to avoid the indirection (sizeof(Token) > sizeof(void *)) Change-Id: Ia5f42781e720ef6aa8161f8f81ae8ddd8e58c837 Reviewed-by: Nikolai Kosjar <nikolai.kosjar@theqtcompany.com>
Diffstat (limited to 'src/plugins/cppeditor/cpphighlighter.cpp')
-rw-r--r--src/plugins/cppeditor/cpphighlighter.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/cppeditor/cpphighlighter.cpp b/src/plugins/cppeditor/cpphighlighter.cpp
index 94263e2b64..f7af544345 100644
--- a/src/plugins/cppeditor/cpphighlighter.cpp
+++ b/src/plugins/cppeditor/cpphighlighter.cpp
@@ -85,7 +85,7 @@ void CppHighlighter::highlightBlock(const QString &text)
tokenize.setLanguageFeatures(features);
int initialLexerState = lexerState;
- const QList<Token> tokens = tokenize(text, initialLexerState);
+ const Tokens tokens = tokenize(text, initialLexerState);
lexerState = tokenize.state(); // refresh lexer state
initialLexerState &= ~0x80; // discard newline expected bit