summaryrefslogtreecommitdiff
path: root/src/Partition.cxx
diff options
context:
space:
mode:
authorMax Kellermann <max@musicpd.org>2016-11-24 17:21:23 +0100
committerMax Kellermann <max@musicpd.org>2016-11-24 17:34:57 +0100
commit5f396e824fd25b9d27b0866070d5c9addcbc3a07 (patch)
tree6abf00ca1ad9f0f0f2ca63a840572f723b68e42c /src/Partition.cxx
parent4f229c254c5a99a95e080ec3e3c429990f29a41d (diff)
ReplayGainMode: convert to strictly-typed enum
Diffstat (limited to 'src/Partition.cxx')
-rw-r--r--src/Partition.cxx6
1 files changed, 3 insertions, 3 deletions
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);
}