1564 |
void Instrument::CopyAssign(const Instrument* orig) { |
void Instrument::CopyAssign(const Instrument* orig) { |
1565 |
CopyAssignCore(orig); |
CopyAssignCore(orig); |
1566 |
// delete all regions first |
// delete all regions first |
1567 |
while (Regions) DeleteRegion(GetFirstRegion()); |
while (Regions) DeleteRegion(GetRegionAt(0)); |
1568 |
// now recreate and copy regions |
// now recreate and copy regions |
1569 |
{ |
{ |
1570 |
RegionList::const_iterator it = orig->pRegions->begin(); |
RegionList::const_iterator it = orig->pRegions->begin(); |