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.
This commit is contained in:
@@ -132,8 +132,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);
|
||||
}
|
||||
|
||||
void
|
||||
|
@@ -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)
|
||||
|
Reference in New Issue
Block a user