Avoid going through QList on conversion from QSet to QVector

GIT_SILENT
parent f2d7ab21
......@@ -1004,7 +1004,12 @@ void TopDUContext::clearProblems()
QVector<DUContext*> TopDUContext::importers() const
{
ENSURE_CAN_READ
#if QT_VERSION >= QT_VERSION_CHECK(5, 14, 0)
const QSet<DUContext*>& directImporters = m_local->m_directImporters;
return QVector<DUContext*>(directImporters.begin(), directImporters.end());
#else
return QVector<DUContext*>::fromList(m_local->m_directImporters.values());
#endif
}
QList<DUContext*> TopDUContext::loadedImporters() const
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment