ProjectExplorer: Use data member for ToolChain::typeDisplayName

Change-Id: Ia78ea3f8628b759706c5b024d687d917b203ec4d
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
hjk
2019-06-19 17:28:20 +02:00
parent f50da02880
commit d56fa44964
21 changed files with 40 additions and 109 deletions

View File

@@ -49,19 +49,7 @@ NimToolChain::NimToolChain(Core::Id typeId)
, m_version(std::make_tuple(-1,-1,-1))
{
setLanguage(Constants::C_NIMLANGUAGE_ID);
}
NimToolChain::NimToolChain(const NimToolChain &other)
: ToolChain(other.typeId())
, m_compilerCommand(other.m_compilerCommand)
, m_version(other.m_version)
{
setLanguage(Constants::C_NIMLANGUAGE_ID);
}
QString NimToolChain::typeDisplayName() const
{
return NimToolChainFactory::tr("Nim");
setTypeDisplayName(NimToolChainFactory::tr("Nim"));
}
Abi NimToolChain::targetAbi() const