1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-07-03 22:19:07 +02:00

Better comments in WaveClip.* after commit 1276968

This commit is contained in:
Paul Licameli 2020-07-06 16:08:36 -04:00
parent 6c2cd2057c
commit 0c92d1ed74
2 changed files with 4 additions and 3 deletions

View File

@ -138,7 +138,7 @@ WaveClip::WaveClip(const WaveClip& orig,
bool copyCutlines) bool copyCutlines)
{ {
// essentially a copy constructor - but you must pass in the // essentially a copy constructor - but you must pass in the
// current project, because we might be copying // current sample block factory, because we might be copying
// from one project to another // from one project to another
mOffset = orig.mOffset; mOffset = orig.mOffset;

View File

@ -173,7 +173,8 @@ public:
class AUDACITY_DLL_API WaveClip final : public XMLTagHandler class AUDACITY_DLL_API WaveClip final : public XMLTagHandler
{ {
private: private:
// It is an error to copy a WaveClip without specifying the project. // It is an error to copy a WaveClip without specifying the
// sample block factory.
WaveClip(const WaveClip&) PROHIBITED; WaveClip(const WaveClip&) PROHIBITED;
WaveClip& operator= (const WaveClip&) PROHIBITED; WaveClip& operator= (const WaveClip&) PROHIBITED;
@ -184,7 +185,7 @@ public:
int rate, int colourIndex); int rate, int colourIndex);
// essentially a copy constructor - but you must pass in the // essentially a copy constructor - but you must pass in the
// current project, because we might be copying // current sample block factory, because we might be copying
// from one project to another // from one project to another
WaveClip(const WaveClip& orig, WaveClip(const WaveClip& orig,
const SampleBlockFactoryPtr &factory, const SampleBlockFactoryPtr &factory,