diff options
author | hjk <hjk121@nokiamail.com> | 2014-11-06 09:35:29 +0100 |
---|---|---|
committer | hjk <hjk121@nokiamail.com> | 2014-11-06 16:13:58 +0100 |
commit | ca151d07fa6d97039fed95dcabe206fce41f5769 (patch) | |
tree | 77b2e92a9fc01a074d3debdb0300d28337b8cf19 /src/plugins/cpptools/cppcodeformatter.cpp | |
parent | cb1d040c327f5c8ed8a188e6227ef0e131a3271b (diff) | |
download | qt-creator-ca151d07fa6d97039fed95dcabe206fce41f5769.tar.gz |
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/cpptools/cppcodeformatter.cpp')
-rw-r--r-- | src/plugins/cpptools/cppcodeformatter.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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<CPlusPlus::Token> &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); |