1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-12-13 16:16:33 +01:00

More const qualifications. The source of a paste is const.

This commit is contained in:
Paul Licameli
2016-02-27 12:54:57 -05:00
parent 70c1d57591
commit d097c7fad4
7 changed files with 9 additions and 9 deletions

View File

@@ -159,7 +159,7 @@ class AUDACITY_DLL_API LabelTrack final : public Track
// one in Track.
bool Copy (double t0, double t1, Track ** dest) override;// const;
bool Clear(double t0, double t1) override;
bool Paste(double t, Track * src) override;
bool Paste(double t, const Track * src) override;
bool Repeat(double t0, double t1, int n);
bool Silence(double t0, double t1) override;
@@ -220,7 +220,7 @@ class AUDACITY_DLL_API LabelTrack final : public Track
void MayMoveLabel( int iLabel, int iEdge, double fNewTime);
// This pastes labels without shifting existing ones
bool PasteOver(double t, Track *src);
bool PasteOver(double t, const Track *src);
// PRL: These functions were not used because they were not overrides! Was that right?
//bool SplitCut(double b, double e, Track **dest) /* not override */;