1
0
mirror of https://github.com/cookiengineer/audacity synced 2026-02-09 05:01:57 +01:00

More const qualifiers, for copying of tracks, and replacing in lists of tracks

... (the tracks may be const, not the list, when replacing)
This commit is contained in:
Paul Licameli
2016-02-27 17:29:21 -05:00
parent 36f3f8aab2
commit 48a5f55179
11 changed files with 35 additions and 24 deletions

View File

@@ -469,7 +469,7 @@ bool NoteTrack::Cut(double t0, double t1, Track **dest){
return true;
}
bool NoteTrack::Copy(double t0, double t1, Track **dest){
bool NoteTrack::Copy(double t0, double t1, Track **dest) const {
//dest goes onto clipboard
*dest = NULL; // This is redundant and matches WaveTrack::Copy