aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/clangcodemodel/clangeditordocumentparser.cpp
diff options
context:
space:
mode:
authorNikolai Kosjar <nikolai.kosjar@theqtcompany.com>2015-07-10 12:34:40 +0200
committerNikolai Kosjar <nikolai.kosjar@theqtcompany.com>2015-07-10 14:04:14 +0000
commit5902a622985158eda3f47bc98d8c4d4c80426eba (patch)
tree8ea781e7d3e631a7133df90880608de03842e13e /src/plugins/clangcodemodel/clangeditordocumentparser.cpp
parent442bdbded2b2268efcb3be1a969d432533023366 (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.cpp3
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();