TagFile: pass reference instead of pointer

This commit is contained in:
Max Kellermann
2013-12-29 16:16:04 +01:00
parent c97685fe6c
commit 9be82891b0
5 changed files with 6 additions and 9 deletions

View File

@@ -80,11 +80,9 @@ public:
};
bool
tag_file_scan(Path path_fs,
const struct tag_handler *handler, void *handler_ctx)
tag_file_scan(Path path_fs, const tag_handler &handler, void *handler_ctx)
{
assert(!path_fs.IsNull());
assert(handler != nullptr);
/* check if there's a suffix and a plugin */
@@ -92,7 +90,7 @@ tag_file_scan(Path path_fs,
if (suffix == nullptr)
return false;
TagFileScan tfs(path_fs, suffix, *handler, handler_ctx);
TagFileScan tfs(path_fs, suffix, handler, handler_ctx);
return decoder_plugins_try([&](const DecoderPlugin &plugin){
return tfs.Scan(plugin);
});