mirror of
https://github.com/cookiengineer/audacity
synced 2025-11-08 14:13:57 +01:00
Regularize casts as (int), so they are easier to find and review
This commit is contained in:
@@ -736,7 +736,7 @@ EffectNoiseReduction::Worker::Worker
|
||||
|
||||
, mSpectrumSize(1 + mWindowSize / 2)
|
||||
, mFreqSmoothingScratch(mSpectrumSize)
|
||||
, mFreqSmoothingBins(int(settings.mFreqSmoothingBands))
|
||||
, mFreqSmoothingBins((int)(settings.mFreqSmoothingBands))
|
||||
, mBinLow(0)
|
||||
, mBinHigh(mSpectrumSize)
|
||||
|
||||
@@ -1415,7 +1415,7 @@ struct ControlInfo {
|
||||
wxString Text(double value) const
|
||||
{
|
||||
if (formatAsInt)
|
||||
return wxString::Format(format, int(value));
|
||||
return wxString::Format(format, (int)(value));
|
||||
else
|
||||
return wxString::Format(format, value);
|
||||
}
|
||||
|
||||
@@ -329,7 +329,7 @@ bool VampEffect::SetAutomationParameters(EffectAutomationParameters & parms)
|
||||
|
||||
if (qs != 0.0)
|
||||
{
|
||||
val = int((val - lower) / qs + 0.5) * qs + lower;
|
||||
val = (int)((val - lower) / qs + 0.5) * qs + lower;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -844,7 +844,7 @@ void VampEffect::UpdateFromPlugin()
|
||||
|
||||
if (qs != 0.0)
|
||||
{
|
||||
value = int((value - lower) / qs + 0.5) * qs + lower;
|
||||
value = (int)((value - lower) / qs + 0.5) * qs + lower;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -891,7 +891,7 @@ void VampEffect::OnSlider(wxCommandEvent & evt)
|
||||
|
||||
if (qs != 0.0)
|
||||
{
|
||||
val = int(val / qs + 0.5) * qs;
|
||||
val = (int)(val / qs + 0.5) * qs;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -920,7 +920,7 @@ void VampEffect::OnTextCtrl(wxCommandEvent & evt)
|
||||
|
||||
if (qs != 0.0)
|
||||
{
|
||||
val = int((val - lower) / qs + 0.5) * qs + lower;
|
||||
val = (int)((val - lower) / qs + 0.5) * qs + lower;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user