QmlJS: Inline getter

Change-Id: Ife8a2b0d6eb67ee28a4de808c1c848dbf633c49b
Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
Jarek Kobus
2021-02-18 20:09:26 +01:00
parent 38bc3dd308
commit d05d9fc65c

View File

@@ -282,7 +282,7 @@ void ModelManagerInterface::loadQmlTypeDescriptionsInternal(const QString &resou
void ModelManagerInterface::setDefaultProject(const ModelManagerInterface::ProjectInfo &pInfo,
ProjectExplorer::Project *p)
{
QMutexLocker l(mutex());
QMutexLocker locker(&m_mutex);
m_defaultProject = p;
m_defaultProjectInfo = pInfo;
}
@@ -1282,11 +1282,6 @@ void ModelManagerInterface::startCppQmlTypeUpdate()
m_queuedCppDocuments.clear();
}
QMutex *ModelManagerInterface::mutex() const
{
return &m_mutex;
}
void ModelManagerInterface::asyncReset()
{
m_asyncResetTimer->start();
@@ -1547,7 +1542,7 @@ ViewerContext ModelManagerInterface::projectVContext(Dialect language, const Doc
ModelManagerInterface::ProjectInfo ModelManagerInterface::defaultProjectInfo() const
{
QMutexLocker l(mutex());
QMutexLocker locker(&m_mutex);
return m_defaultProjectInfo;
}