mirror of
https://github.com/cookiengineer/audacity
synced 2025-10-26 15:23:48 +01:00
Remove some naked new amd delete in: tracks and clips
This commit is contained in:
committed by
Paul Licameli
parent
8392a57d34
commit
20bee00115
@@ -382,11 +382,11 @@ bool SpectrumPrefs::Apply()
|
||||
|
||||
if (mWt) {
|
||||
if (mDefaulted) {
|
||||
mWt->SetSpectrogramSettings(NULL);
|
||||
mWt->SetSpectrogramSettings({});
|
||||
// ... and so that the vertical scale also defaults:
|
||||
mWt->SetSpectrumBounds(-1, -1);
|
||||
if (partner) {
|
||||
partner->SetSpectrogramSettings(NULL);
|
||||
partner->SetSpectrogramSettings({});
|
||||
partner->SetSpectrumBounds(-1, -1);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -147,9 +147,9 @@ bool WaveformPrefs::Apply()
|
||||
|
||||
if (mWt) {
|
||||
if (mDefaulted) {
|
||||
mWt->SetWaveformSettings(NULL);
|
||||
mWt->SetWaveformSettings({});
|
||||
if (partner)
|
||||
partner->SetWaveformSettings(NULL);
|
||||
partner->SetWaveformSettings({});
|
||||
}
|
||||
else {
|
||||
WaveformSettings *pSettings =
|
||||
|
||||
Reference in New Issue
Block a user