forked from qt-creator/qt-creator
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>
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user