예제 #1
0
Pair* Component::findByIndex(const int slotindex)
{
   Pair* p {};

   PairStream* subcomponents = getComponents();
   if (subcomponents != nullptr) {
      p = subcomponents->getPosition(slotindex);
      subcomponents->unref();
      subcomponents = nullptr;
   }

   return p;
}