Remove use of C-style casts
This commit is contained in:
committed by
Jonas Kvinge
parent
637772f8f0
commit
b38ad81928
@@ -59,7 +59,7 @@ EqualizerSlider::~EqualizerSlider() {
|
||||
void EqualizerSlider::OnValueChanged(int value) {
|
||||
|
||||
// Converting % to dB as per GstEnginePipeline::UpdateEqualizer():
|
||||
float gain = (static_cast<int>(value) < 0) ? static_cast<float>(value) * float(0.24) : float(value) * float(0.12);
|
||||
float gain = (static_cast<int>(value) < 0) ? static_cast<float>(value) * static_cast<float>(0.24) : static_cast<float>(value) * static_cast<float>(0.12);
|
||||
|
||||
ui_->gain->setText(tr("%1 dB").arg(gain)); // Gain [dB]
|
||||
emit ValueChanged(value);
|
||||
|
||||
Reference in New Issue
Block a user