1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-10-21 14:02:57 +02:00

fixing strict-aliasing rule violations by passing enum types as int references

This commit is contained in:
andheh
2018-03-06 10:04:39 +01:00
committed by James Crook
parent 7a30222f49
commit 87eaaa6f45
7 changed files with 18 additions and 13 deletions

View File

@@ -167,7 +167,7 @@ bool SetTrackCommand::Apply(const CommandContext & context)
bool bIsSecondChannel = false;
while (t )
{
bool bThisTrack =
bool bThisTrack =
(bHasTrackIndex && (i==mTrackIndex)) ||
(bHasChannelIndex && (j==mChannelIndex ) ) ||
(!bHasTrackIndex && !bHasChannelIndex) ;
@@ -191,9 +191,9 @@ bool SetTrackCommand::Apply(const CommandContext & context)
if( wt && bHasDisplayType )
wt->SetDisplay(
(mDisplayType == kWaveform) ?
WaveTrack::WaveTrackDisplay::Waveform
: WaveTrack::WaveTrackDisplay::Spectrum
(mDisplayType == kWaveform) ?
WaveTrack::WaveTrackDisplayValues::Waveform
: WaveTrack::WaveTrackDisplayValues::Spectrum
);
if( wt && bHasScaleType )
wt->GetIndependentWaveformSettings().scaleType =