tag/TagHandler: pass by reference

This commit is contained in:
Max Kellermann
2016-02-23 10:10:13 +01:00
parent 7623c1c5cb
commit 73307bf2e7
37 changed files with 100 additions and 104 deletions

View File

@@ -244,7 +244,7 @@ sndfile_stream_decode(Decoder &decoder, InputStream &is)
static void
sndfile_handle_tag(SNDFILE *sf, int str, TagType tag,
const TagHandler *handler, void *handler_ctx)
const TagHandler &handler, void *handler_ctx)
{
const char *value = sf_get_string(sf, str);
if (value != nullptr)
@@ -266,7 +266,7 @@ static constexpr struct {
static bool
sndfile_scan_stream(InputStream &is,
const TagHandler *handler, void *handler_ctx)
const TagHandler &handler, void *handler_ctx)
{
SF_INFO info;