1
0
Fork 0
mirror of https://github.com/KingDuckZ/dindexer.git synced 2024-11-25 00:53:43 +00:00

Fix assert due to necrophily.

This commit is contained in:
King_DuckZ 2017-08-12 21:25:27 +01:00
parent 23098c9fe0
commit 2318bc01ee

View file

@ -96,9 +96,10 @@ namespace mchlib {
fastf::FileSearcher::ConstCharVecType ext, ignore;
searcher.SetFollowSymlinks(true);
auto root_path = PathName(string_ref(m_root));
searcher.SetCallback(
fastf::FileSearcher::CallbackType(
std::bind(&add_path, std::ref(parData), PathName(string_ref(m_root)), _1, _2)
std::bind(&add_path, std::ref(parData), std::cref(root_path), _1, _2)
)
);
searcher.Search(ext, ignore);