mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-01 21:56:43 +08:00
refs #917, use utility functions in simulator settings
This commit is contained in:
committed by
Mathew Sutcliffe
parent
0544ab0193
commit
f816c927ee
@@ -19,7 +19,6 @@ namespace BlackMisc
|
||||
{
|
||||
namespace Simulation
|
||||
{
|
||||
|
||||
CSimulatorPluginInfoList::CSimulatorPluginInfoList() { }
|
||||
|
||||
bool CSimulatorPluginInfoList::supportsSimulator(const QString &simulator) const
|
||||
@@ -35,5 +34,9 @@ namespace BlackMisc
|
||||
return this->transform([i18n](const CSimulatorPluginInfo & info) { return info.toQString(i18n); });
|
||||
}
|
||||
|
||||
CSimulatorPluginInfo CSimulatorPluginInfoList::findByIdentifier(const QString &identifier) const
|
||||
{
|
||||
return this->findFirstByOrDefault(&CSimulatorPluginInfo::getIdentifier, identifier);
|
||||
}
|
||||
} // namespace
|
||||
} // namespace
|
||||
|
||||
Reference in New Issue
Block a user