summaryrefslogtreecommitdiff
path: root/src/database/file_gatherer.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/database/file_gatherer.cpp')
-rw-r--r--src/database/file_gatherer.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/database/file_gatherer.cpp b/src/database/file_gatherer.cpp
index b4e87acb..55777139 100644
--- a/src/database/file_gatherer.cpp
+++ b/src/database/file_gatherer.cpp
@@ -22,7 +22,7 @@ static_assert(sizeof(TCHAR) == sizeof(char), "TCHAR must be CHAR");
auto FileGathererImpl::FindFiles(
const std::pmr::string& root,
- std::function<void(const std::pmr::string&)> cb) -> void {
+ std::function<void(const std::pmr::string&, const FILINFO&)> cb) -> void {
std::pmr::deque<std::pmr::string> to_explore(&memory::kSpiRamResource);
to_explore.push_back(root);
@@ -65,7 +65,7 @@ auto FileGathererImpl::FindFiles(
} else {
// This is a file! Let the callback know about it.
// std::invoke(cb, full_path.str(), info);
- std::invoke(cb, full_path);
+ std::invoke(cb, full_path, info);
}
}
}