*: use auto
This commit is contained in:
@@ -177,7 +177,7 @@ alsa_mixer_init(EventLoop &event_loop, gcc_unused AudioOutput &ao,
|
||||
MixerListener &listener,
|
||||
const ConfigBlock &block)
|
||||
{
|
||||
AlsaMixer *am = new AlsaMixer(event_loop, listener);
|
||||
auto *am = new AlsaMixer(event_loop, listener);
|
||||
am->Configure(block);
|
||||
|
||||
return am;
|
||||
|
||||
@@ -108,7 +108,7 @@ static void
|
||||
pulse_mixer_volume_cb(gcc_unused pa_context *context, const pa_sink_input_info *i,
|
||||
int eol, void *userdata)
|
||||
{
|
||||
PulseMixer *pm = (PulseMixer *)userdata;
|
||||
auto *pm = (PulseMixer *)userdata;
|
||||
pm->VolumeCallback(i, eol);
|
||||
}
|
||||
|
||||
@@ -187,9 +187,9 @@ pulse_mixer_init(gcc_unused EventLoop &event_loop, AudioOutput &ao,
|
||||
MixerListener &listener,
|
||||
const ConfigBlock &block)
|
||||
{
|
||||
PulseOutput &po = (PulseOutput &)ao;
|
||||
auto &po = (PulseOutput &)ao;
|
||||
float scale = parse_volume_scale_factor(block.GetBlockValue("scale_volume"));
|
||||
PulseMixer *pm = new PulseMixer(po, listener, scale);
|
||||
auto *pm = new PulseMixer(po, listener, scale);
|
||||
|
||||
pulse_output_set_mixer(po, *pm);
|
||||
|
||||
|
||||
@@ -108,6 +108,6 @@ SoftwareMixer::SetFilter(Filter *_filter) noexcept
|
||||
void
|
||||
software_mixer_set_filter(Mixer &mixer, Filter *filter) noexcept
|
||||
{
|
||||
SoftwareMixer &sm = (SoftwareMixer &)mixer;
|
||||
auto &sm = (SoftwareMixer &)mixer;
|
||||
sm.SetFilter(filter);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user