From ca151d07fa6d97039fed95dcabe206fce41f5769 Mon Sep 17 00:00:00 2001 From: hjk Date: Thu, 6 Nov 2014 09:35:29 +0100 Subject: CPlusPlus: Use QVector instead of QList Better suited to avoid the indirection (sizeof(Token) > sizeof(void *)) Change-Id: Ia5f42781e720ef6aa8161f8f81ae8ddd8e58c837 Reviewed-by: Nikolai Kosjar --- src/plugins/cpptools/cppcodeformatter.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/plugins/cpptools/cppcodeformatter.cpp') diff --git a/src/plugins/cpptools/cppcodeformatter.cpp b/src/plugins/cpptools/cppcodeformatter.cpp index 856089ad67..355d59424a 100644 --- a/src/plugins/cpptools/cppcodeformatter.cpp +++ b/src/plugins/cpptools/cppcodeformatter.cpp @@ -1449,7 +1449,7 @@ void QtStyleCodeFormatter::onEnter(int newState, int *indentDepth, int *savedInd *savedPaddingDepth = qMax(0, *savedPaddingDepth); } -void QtStyleCodeFormatter::adjustIndent(const QList &tokens, int lexerState, int *indentDepth, int *paddingDepth) const +void QtStyleCodeFormatter::adjustIndent(const Tokens &tokens, int lexerState, int *indentDepth, int *paddingDepth) const { State topState = state(); State previousState = state(1); -- cgit v1.2.1