diff options
author | Nikolai Kosjar <nikolai.kosjar@theqtcompany.com> | 2015-07-10 12:34:40 +0200 |
---|---|---|
committer | Nikolai Kosjar <nikolai.kosjar@theqtcompany.com> | 2015-07-10 14:04:14 +0000 |
commit | 5902a622985158eda3f47bc98d8c4d4c80426eba (patch) | |
tree | 8ea781e7d3e631a7133df90880608de03842e13e /src/plugins/clangcodemodel/clangeditordocumentparser.cpp | |
parent | 442bdbded2b2268efcb3be1a969d432533023366 (diff) |
CppTools: Let BaseEditorDocumentParser acquire the mutex
...so derived classes are freed from doing this.
Change-Id: I73f3eca54be14cfd6542a466f0e9c024457bef07
Reviewed-by: Erik Verbruggen <erik.verbruggen@theqtcompany.com>
Diffstat (limited to 'src/plugins/clangcodemodel/clangeditordocumentparser.cpp')
-rw-r--r-- | src/plugins/clangcodemodel/clangeditordocumentparser.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/plugins/clangcodemodel/clangeditordocumentparser.cpp b/src/plugins/clangcodemodel/clangeditordocumentparser.cpp index fd2c60dbaee..1f7d100fb63 100644 --- a/src/plugins/clangcodemodel/clangeditordocumentparser.cpp +++ b/src/plugins/clangcodemodel/clangeditordocumentparser.cpp @@ -88,10 +88,9 @@ ClangEditorDocumentParser::ClangEditorDocumentParser(const QString &filePath) { } -void ClangEditorDocumentParser::update(CppTools::WorkingCopy workingCopy) +void ClangEditorDocumentParser::updateHelper(CppTools::WorkingCopy workingCopy) { QTC_ASSERT(m_marker, return); - QMutexLocker locker(&m_updateIsRunning); // Determine project part State state_ = state(); |