aboutsummaryrefslogtreecommitdiffstats
path: root/src/db/update/Container.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'src/db/update/Container.cxx')
-rw-r--r--src/db/update/Container.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/db/update/Container.cxx b/src/db/update/Container.cxx
index 0a3f7f2f8..97cff332f 100644
--- a/src/db/update/Container.cxx
+++ b/src/db/update/Container.cxx
@@ -99,7 +99,7 @@ UpdateWalk::UpdateContainerFile(Directory &directory,
char *vtrack;
unsigned int tnum = 0;
TagBuilder tag_builder;
- while ((vtrack = plugin.container_scan(pathname.c_str(), ++tnum)) != nullptr) {
+ while ((vtrack = plugin.container_scan(pathname, ++tnum)) != nullptr) {
Song *song = Song::NewFile(vtrack, *contdir);
// shouldn't be necessary but it's there..
@@ -107,7 +107,7 @@ UpdateWalk::UpdateContainerFile(Directory &directory,
const auto child_path_fs = AllocatedPath::Build(pathname,
vtrack);
- plugin.ScanFile(child_path_fs.c_str(),
+ plugin.ScanFile(child_path_fs,
add_tag_handler, &tag_builder);
tag_builder.Commit(song->tag);