Merge remote-tracking branches 'neheb/uniq', 'neheb/bool', 'neheb/loop', 'neheb/bool2', 'neheb/perf', 'neheb/void' and 'neheb/value'

This commit is contained in:
Max Kellermann
2020-02-02 16:22:19 +01:00
26 changed files with 49 additions and 51 deletions

View File

@@ -102,7 +102,7 @@ flac_scan_stream(InputStream &is, TagHandler &handler) noexcept
* Some glue code around FLAC__stream_decoder_new().
*/
static FlacStreamDecoder
flac_decoder_new(void)
flac_decoder_new()
{
FlacStreamDecoder sd;
if(!FLAC__stream_decoder_set_metadata_respond(sd.get(), FLAC__METADATA_TYPE_VORBIS_COMMENT))

View File

@@ -516,8 +516,8 @@ parse_xing(struct xing *xing, struct mad_bitptr *ptr, int *oldbitlen) noexcept
if (xing->flags & XING_TOC) {
if (bitlen < 800)
return false;
for (unsigned i = 0; i < 100; ++i)
xing->toc[i] = mad_bit_read(ptr, 8);
for (unsigned char & i : xing->toc)
i = mad_bit_read(ptr, 8);
bitlen -= 800;
}

View File

@@ -38,24 +38,24 @@ static constexpr Domain mikmod_domain("mikmod");
static constexpr size_t MIKMOD_FRAME_SIZE = 4096;
static BOOL
mikmod_mpd_init(void)
mikmod_mpd_init()
{
return VC_Init();
}
static void
mikmod_mpd_exit(void)
mikmod_mpd_exit()
{
VC_Exit();
}
static void
mikmod_mpd_update(void)
mikmod_mpd_update()
{
}
static BOOL
mikmod_mpd_is_present(void)
mikmod_mpd_is_present()
{
return true;
}