summaryrefslogtreecommitdiff
path: root/src/ReplayGainInfo.hxx
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/ReplayGainInfo.hxx
parent4f229c254c5a99a95e080ec3e3c429990f29a41d (diff)
ReplayGainMode: convert to strictly-typed enum
Diffstat (limited to 'src/ReplayGainInfo.hxx')
-rw-r--r--src/ReplayGainInfo.hxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ReplayGainInfo.hxx b/src/ReplayGainInfo.hxx
index 9bcd3f0f0..ae14635ad 100644
--- a/src/ReplayGainInfo.hxx
+++ b/src/ReplayGainInfo.hxx
@@ -50,7 +50,7 @@ struct ReplayGainInfo {
}
const ReplayGainTuple &Get(ReplayGainMode mode) const {
- return mode == REPLAY_GAIN_ALBUM
+ return mode == ReplayGainMode::ALBUM
? (album.IsDefined() ? album : track)
: (track.IsDefined() ? track : album);
}