void CBonusSystemNode::getParents(TNodes &out) { for (auto & elem : parents) { const CBonusSystemNode *parent = elem; out.insert(const_cast<CBonusSystemNode*>(parent)); } }
void CBonusSystemNode::getParents(TNodes &out) { for (ui32 i = 0; i < parents.size(); i++) { const CBonusSystemNode *parent = parents[i]; out.insert(const_cast<CBonusSystemNode*>(parent)); } }