diff options
author | Nikolai Kosjar <nikolai.kosjar@digia.com> | 2014-07-30 17:37:17 +0200 |
---|---|---|
committer | Erik Verbruggen <erik.verbruggen@digia.com> | 2014-08-20 10:29:21 +0200 |
commit | 27e343b970a7cf6ea64bcb189a7e3e8ea817913b (patch) | |
tree | 1f2d39800e013dfa15cc0726218793f1f6bf85f0 /src/plugins/cpptools/cpptoolseditorsupport.cpp | |
parent | 6b5298faf9f605e76e1872c89c594ab1cb9b5363 (diff) | |
download | qt-creator-27e343b970a7cf6ea64bcb189a7e3e8ea817913b.tar.gz |
CppTools: Extract BaseEditorDocumentParser out of SnapshotUpdater
Change-Id: If89e81eec6d600d3d39cc09203cf434d0768c1b4
Reviewed-by: Erik Verbruggen <erik.verbruggen@digia.com>
Diffstat (limited to 'src/plugins/cpptools/cpptoolseditorsupport.cpp')
-rw-r--r-- | src/plugins/cpptools/cpptoolseditorsupport.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/plugins/cpptools/cpptoolseditorsupport.cpp b/src/plugins/cpptools/cpptoolseditorsupport.cpp index 123f93da1b..9ebc61e955 100644 --- a/src/plugins/cpptools/cpptoolseditorsupport.cpp +++ b/src/plugins/cpptools/cpptoolseditorsupport.cpp @@ -262,7 +262,7 @@ CppCompletionAssistProvider *CppEditorSupport::completionAssistProvider() const QSharedPointer<SnapshotUpdater> CppEditorSupport::snapshotUpdater() { QSharedPointer<SnapshotUpdater> updater = snapshotUpdater_internal(); - if (!updater || updater->fileInEditor() != fileName()) { + if (!updater || updater->filePath() != fileName()) { updater = QSharedPointer<SnapshotUpdater>(new SnapshotUpdater(fileName())); setSnapshotUpdater_internal(updater); @@ -293,7 +293,7 @@ static void parse(QFutureInterface<void> &future, QSharedPointer<SnapshotUpdater CppModelManager *cmm = qobject_cast<CppModelManager *>(CppModelManager::instance()); updater->update(workingCopy); - cmm->finishedRefreshingSourceFiles(QStringList(updater->fileInEditor())); + cmm->finishedRefreshingSourceFiles(QStringList(updater->filePath())); future.setProgressValue(1); } @@ -488,7 +488,7 @@ void CppEditorSupport::releaseResources() { m_highlighter.cancel(); m_highlighter = QFuture<TextEditor::HighlightingResult>(); - snapshotUpdater()->releaseSnapshot(); + snapshotUpdater()->releaseResources(); setSemanticInfo(SemanticInfo(), /*emitSignal=*/ false); m_lastHighlightOnCompleteSemanticInfo = true; } |