forked from qt-creator/qt-creator
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>
This commit is contained in:
@@ -408,7 +408,7 @@ FollowSymbolUnderCursor::~FollowSymbolUnderCursor()
|
||||
delete m_virtualFunctionAssistProvider;
|
||||
}
|
||||
|
||||
static int skipMatchingParentheses(const QList<Token> &tokens, int idx, int initialDepth)
|
||||
static int skipMatchingParentheses(const Tokens &tokens, int idx, int initialDepth)
|
||||
{
|
||||
int j = idx;
|
||||
int depth = initialDepth;
|
||||
@@ -476,8 +476,7 @@ TextEditorWidget::Link FollowSymbolUnderCursor::findLink(const QTextCursor &curs
|
||||
SimpleLexer tokenize;
|
||||
tokenize.setLanguageFeatures(features);
|
||||
const QString blockText = cursor.block().text();
|
||||
const QList<Token> tokens = tokenize(blockText,
|
||||
BackwardsScanner::previousBlockState(cursor.block()));
|
||||
const Tokens tokens = tokenize(blockText, BackwardsScanner::previousBlockState(cursor.block()));
|
||||
|
||||
bool recognizedQtMethod = false;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user