summaryrefslogtreecommitdiff
path: root/test/dump_rva2.cxx
diff options
context:
space:
mode:
authorMax Kellermann <max@musicpd.org>2016-11-24 16:45:56 +0100
committerMax Kellermann <max@musicpd.org>2016-11-24 17:34:57 +0100
commit25e58df5e07c3eb878d48ac58780d56f2ecdd565 (patch)
tree63fb6dfff4c8a96eb17adcdb263f0b6fe769094c /test/dump_rva2.cxx
parent1261327fa61fbf01adaab639bb012dae58ddab1a (diff)
ReplayGainInfo: don't use array in struct ReplayGainInfo
Declare two named elements. An enum should not be used as an array index, as this is error prone.
Diffstat (limited to 'test/dump_rva2.cxx')
-rw-r--r--test/dump_rva2.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/dump_rva2.cxx b/test/dump_rva2.cxx
index 603d96e7b..3a5aada64 100644
--- a/test/dump_rva2.cxx
+++ b/test/dump_rva2.cxx
@@ -56,8 +56,8 @@ DumpReplayGainTuple(const char *name, const ReplayGainTuple &tuple)
static void
DumpReplayGainInfo(const ReplayGainInfo &info)
{
- DumpReplayGainTuple("album", info.tuples[REPLAY_GAIN_ALBUM]);
- DumpReplayGainTuple("track", info.tuples[REPLAY_GAIN_TRACK]);
+ DumpReplayGainTuple("album", info.album);
+ DumpReplayGainTuple("track", info.track);
}
int main(int argc, char **argv)