MCPcopy Create free account
hub / github.com/audacity/audacity / Init

Method Init

libraries/lib-track/Track.cpp:47–55  ·  view source on GitHub ↗

Copy all the track properties except the actual contents

Source from the content-addressed store, hash-verified

45
46// Copy all the track properties except the actual contents
47void 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
57void Track::ReparentAllAttachments()
58{

Callers 3

PasteIntoMethod · 0.45
CloneMethod · 0.45
CopyMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected