Pair* Component::findByIndex(const int slotindex) { Pair* p {}; PairStream* subcomponents = getComponents(); if (subcomponents != nullptr) { p = subcomponents->getPosition(slotindex); subcomponents->unref(); subcomponents = nullptr; } return p; }
Pair* Component::findByIndex(const int slotindex) { Pair* p {}; PairStream* subcomponents = getComponents(); if (subcomponents != nullptr) { p = subcomponents->getPosition(slotindex); subcomponents->unref(); subcomponents = nullptr; } return p; }