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

Method getInstIndex

launcher/InstanceList.cpp:604–613  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

602}
603
604int InstanceList::getInstIndex(BaseInstance* inst) const
605{
606 int count = m_instances.count();
607 for (int i = 0; i < count; i++) {
608 if (inst == m_instances[i].get()) {
609 return i;
610 }
611 }
612 return -1;
613}
614
615void InstanceList::propertiesChanged(BaseInstance* inst)
616{

Callers

nothing calls this directly

Calls 2

countMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected