forked from qt-creator/qt-creator
ProjectExplorer: Use QList instead of QSet for language ids
There's no point in keeping ~2 items in a set and convert that to a list every now and then. Change-Id: I214b1049fb458e3d159478c47f55b97aacaac75a Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
@@ -514,7 +514,7 @@ ToolChain *ToolChainFactory::createToolChain(Utils::Id toolChainType)
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
QSet<Utils::Id> ToolChainFactory::supportedLanguages() const
|
||||
QList<Utils::Id> ToolChainFactory::supportedLanguages() const
|
||||
{
|
||||
return m_supportsAllLanguages ? ToolChainManager::allLanguages() : m_supportedLanguages;
|
||||
}
|
||||
@@ -529,7 +529,7 @@ void ToolChainFactory::setSupportedToolChainType(const Utils::Id &supportedToolC
|
||||
m_supportedToolChainType = supportedToolChain;
|
||||
}
|
||||
|
||||
void ToolChainFactory::setSupportedLanguages(const QSet<Utils::Id> &supportedLanguages)
|
||||
void ToolChainFactory::setSupportedLanguages(const QList<Utils::Id> &supportedLanguages)
|
||||
{
|
||||
m_supportedLanguages = supportedLanguages;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user