mirror of
https://github.com/cookiengineer/audacity
synced 2025-07-24 00:18:07 +02:00
Briefer track iteration idiom avoids casting
This commit is contained in:
parent
de60edc62f
commit
03101d1d75
@ -54,11 +54,8 @@ void DoSelectTimeAndAudioTracks
|
|||||||
tracks->GetMinOffset(), tracks->GetEndTime());
|
tracks->GetMinOffset(), tracks->GetEndTime());
|
||||||
|
|
||||||
if( bAllTracks ) {
|
if( bAllTracks ) {
|
||||||
for (auto t : tracks->Any()){
|
for (auto t : tracks->Any<WaveTrack>())
|
||||||
auto wt = dynamic_cast<WaveTrack *>(t);
|
t->SetSelected(true);
|
||||||
if( wt )
|
|
||||||
t->SetSelected(true);
|
|
||||||
}
|
|
||||||
|
|
||||||
project.ModifyState(false);
|
project.ModifyState(false);
|
||||||
trackPanel->Refresh(false);
|
trackPanel->Refresh(false);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user