1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-12-20 15:41:18 +01:00

use std::vector to hold TrackClip; move ctor and dtor out of line

This commit is contained in:
Paul Licameli
2016-02-20 13:22:12 -05:00
committed by Paul Licameli
parent c373f4d859
commit cb7872f980
3 changed files with 31 additions and 20 deletions

View File

@@ -17,7 +17,6 @@
#include <vector>
#include <wx/defs.h>
#include <wx/dynarray.h>
#include <wx/string.h>
#include "widgets/NumericTextCtrl.h"
@@ -32,19 +31,21 @@ class ZoomInfo;
class TrackClip
{
public:
TrackClip(Track *t, WaveClip *c)
{
track = origTrack = t;
dstTrack = NULL;
clip = c;
}
TrackClip(Track *t, WaveClip *c);
#ifndef __AUDACITY_OLD_STD__
TrackClip(TrackClip&&) = default;
#endif
~TrackClip();
Track *track;
Track *origTrack;
Track *dstTrack;
WaveClip *clip;
};
WX_DECLARE_USER_EXPORTED_OBJARRAY(TrackClip, TrackClipArray, AUDACITY_DLL_API);
class TrackClipArray : public std::vector < TrackClip > {};
enum
{