From 5f396e824fd25b9d27b0866070d5c9addcbc3a07 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Thu, 24 Nov 2016 17:21:23 +0100 Subject: ReplayGainMode: convert to strictly-typed enum --- src/Partition.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/Partition.cxx') diff --git a/src/Partition.cxx b/src/Partition.cxx index 8aca29dde..f3027e05c 100644 --- a/src/Partition.cxx +++ b/src/Partition.cxx @@ -45,10 +45,10 @@ Partition::EmitIdle(unsigned mask) void Partition::UpdateEffectiveReplayGainMode(ReplayGainMode mode) { - if (mode == REPLAY_GAIN_AUTO) + if (mode == ReplayGainMode::AUTO) mode = playlist.queue.random - ? REPLAY_GAIN_TRACK - : REPLAY_GAIN_ALBUM; + ? ReplayGainMode::TRACK + : ReplayGainMode::ALBUM; outputs.SetReplayGainMode(mode); } -- cgit v1.2.3