- Handle(TColStd_HSequenceOfTransient) aSeq =
- Handle(SALOMEDSImpl_AttributeTarget)::DownCast(_local_impl)->Get();
- aLength = aSeq->Length();
- for (i = 1; i <= aLength; i++) {
- aSO = new SALOMEDS_SObject(Handle(SALOMEDSImpl_SObject)::DownCast(aSeq->Value(i)));
+ std::vector<SALOMEDSImpl_SObject> aSeq = dynamic_cast<SALOMEDSImpl_AttributeTarget*>(_local_impl)->Get();
+ aLength = aSeq.size();
+ for (i = 0; i < aLength; i++) {
+ aSO = new SALOMEDS_SObject(aSeq[i]);