MCPcopy Create free account
hub / github.com/FreesmTeam/FreesmLauncher / getInstanceById

Method getInstanceById

launcher/InstanceList.cpp:574–584  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

572}
573
574InstancePtr InstanceList::getInstanceById(QString instId) const
575{
576 if (instId.isEmpty())
577 return InstancePtr();
578 for (auto& inst : m_instances) {
579 if (inst->id() == instId) {
580 return inst;
581 }
582 }
583 return InstancePtr();
584}
585
586InstancePtr InstanceList::getInstanceByManagedName(const QString& managed_name) const
587{

Callers 7

messageReceivedMethod · 0.80
updateInstanceMethod · 0.80
updateInstanceMethod · 0.80
processURLsMethod · 0.80
instanceActivatedMethod · 0.80
instanceChangedMethod · 0.80

Calls 2

isEmptyMethod · 0.45
idMethod · 0.45

Tested by

no test coverage detected