1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-06-22 15:20:15 +02:00

Fix Windows build

vs2013/5 do not support defaulted move constructed, so made it explicit.
This commit is contained in:
David Bailes 2016-08-13 13:18:34 +01:00
parent 87aeef2bfc
commit 7f122a42f9
2 changed files with 8 additions and 1 deletions

View File

@ -33,6 +33,12 @@ TrackClip::TrackClip(Track *t, WaveClip *c)
clip = c;
}
#ifndef __AUDACITY_OLD_STD__
TrackClip::TrackClip(TrackClip&& tc)
: track{tc.track}, origTrack{tc.origTrack}, dstTrack{tc.dstTrack},
clip{tc.clip}, holder{std::move(tc.holder)} {}
#endif
TrackClip::~TrackClip()
{

View File

@ -34,7 +34,8 @@ public:
TrackClip(Track *t, WaveClip *c);
#ifndef __AUDACITY_OLD_STD__
TrackClip(TrackClip&&) = default;
// TrackClip(TrackClip&&) = default; is not supported by vs2013/5 so explicit version needed
TrackClip(TrackClip&&);
#endif
~TrackClip();