| 38 | } |
| 39 | |
| 40 | void Clipboard::Clear() |
| 41 | { |
| 42 | mT0 = 0.0; |
| 43 | mT1 = 0.0; |
| 44 | mProject.reset(); |
| 45 | mTracks->Clear(); |
| 46 | |
| 47 | if (this == &Get()) |
| 48 | // Delayed message at idle time |
| 49 | // Don't need to capture a weak pointer to the global object |
| 50 | BasicUI::CallAfter([this]{ Publish({}); }); |
| 51 | } |
| 52 | |
| 53 | void Clipboard::Assign( TrackList && newContents, |
| 54 | double t0, double t1, const std::weak_ptr<AudacityProject> &pProject ) |
no test coverage detected