1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-11-23 17:30:17 +01:00

Change the track view copy function...

... It is const, renamed CopyTo, and invokes the create-on-demand factory in
the destination track; this means Track.cpp doesn't need to do that, and so
does not need TrackView.h
This commit is contained in:
Paul Licameli
2019-06-22 11:02:55 -04:00
parent 8793d6b475
commit dc9e436dde
7 changed files with 15 additions and 18 deletions

View File

@@ -41,8 +41,6 @@ and TimeTrack.
#include "InconsistencyException.h"
#include "tracks/ui/TrackView.h"
#ifdef _MSC_VER
//Disable truncation warnings
#pragma warning( disable : 4786 )
@@ -115,7 +113,7 @@ Track::Holder Track::Duplicate() const
if (mpView)
// Copy view state that might be important to undo/redo
TrackView::Get( *result ).Copy( *mpView );
mpView->CopyTo( *result );
return result;
}