diff options
author | Max Kellermann <max@duempel.org> | 2013-12-29 16:16:04 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2013-12-29 16:24:04 +0100 |
commit | 9be82891b01ba2190a97032a2f84b70151bc2358 (patch) | |
tree | 64aca4836fcb7672df94c24a2d5ac216d8ae15fb /src/TagFile.cxx | |
parent | c97685fe6cbcd412cb2425e475075ffbabcd072c (diff) |
TagFile: pass reference instead of pointer
Diffstat (limited to 'src/TagFile.cxx')
-rw-r--r-- | src/TagFile.cxx | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/TagFile.cxx b/src/TagFile.cxx index a2bc9de0a..dc0aa6b64 100644 --- a/src/TagFile.cxx +++ b/src/TagFile.cxx @@ -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); }); |