aboutsummaryrefslogtreecommitdiffstats
path: root/src/TagFile.cxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2013-12-29 16:16:04 +0100
committerMax Kellermann <max@duempel.org>2013-12-29 16:24:04 +0100
commit9be82891b01ba2190a97032a2f84b70151bc2358 (patch)
tree64aca4836fcb7672df94c24a2d5ac216d8ae15fb /src/TagFile.cxx
parentc97685fe6cbcd412cb2425e475075ffbabcd072c (diff)
downloadmpd-9be82891b01ba2190a97032a2f84b70151bc2358.tar.gz
mpd-9be82891b01ba2190a97032a2f84b70151bc2358.tar.xz
mpd-9be82891b01ba2190a97032a2f84b70151bc2358.zip
TagFile: pass reference instead of pointer
Diffstat (limited to 'src/TagFile.cxx')
-rw-r--r--src/TagFile.cxx6
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);
});