diff options
author | Erik Verbruggen <erik.verbruggen@nokia.com> | 2010-06-04 09:36:05 +0200 |
---|---|---|
committer | Erik Verbruggen <erik.verbruggen@nokia.com> | 2010-06-04 09:36:05 +0200 |
commit | c2393df02332618c8cf6159d9d6f6a40041ced89 (patch) | |
tree | 4230c145cc5fa6576310afebe989003151ed38d1 /src/plugins/cppeditor/cpphoverhandler.cpp | |
parent | 414d9fe3e0fe03f27432b9943e7b2bb5bc2f716c (diff) | |
download | qt-creator-c2393df02332618c8cf6159d9d6f6a40041ced89.tar.gz |
Introduced a token cache for the C++ editor.
This should speed things up a bit, because before, the line was tokenized at
least 3 times.
Diffstat (limited to 'src/plugins/cppeditor/cpphoverhandler.cpp')
-rw-r--r-- | src/plugins/cppeditor/cpphoverhandler.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/cppeditor/cpphoverhandler.cpp b/src/plugins/cppeditor/cpphoverhandler.cpp index 4135d0b6cc..f1ba99581a 100644 --- a/src/plugins/cppeditor/cpphoverhandler.cpp +++ b/src/plugins/cppeditor/cpphoverhandler.cpp @@ -254,7 +254,7 @@ void CppHoverHandler::updateHelpIdAndTooltip(TextEditor::ITextEditor *editor, in } // Fetch the expression's code - ExpressionUnderCursor expressionUnderCursor; + ExpressionUnderCursor expressionUnderCursor(m_modelManager->tokenCache(editor)); const QString expression = expressionUnderCursor(tc); const QList<LookupItem> types = typeOfExpression(expression, scope); |