Copy all the track properties except the actual contents
| 45 | |
| 46 | // Copy all the track properties except the actual contents |
| 47 | void Track::Init(const Track &orig) |
| 48 | { |
| 49 | mId = orig.mId; |
| 50 | ChannelGroupAttachments &base = *this; |
| 51 | // Intentional slice assignment deep-copies the attachment array: |
| 52 | base = orig; |
| 53 | CopyGroupProperties(orig); |
| 54 | mLinkType = orig.mLinkType; |
| 55 | } |
| 56 | |
| 57 | void Track::ReparentAllAttachments() |
| 58 | { |