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:
parent
23098c9fe0
commit
2318bc01ee
1 changed files with 2 additions and 1 deletions
|
@ -96,9 +96,10 @@ namespace mchlib {
|
||||||
fastf::FileSearcher::ConstCharVecType ext, ignore;
|
fastf::FileSearcher::ConstCharVecType ext, ignore;
|
||||||
|
|
||||||
searcher.SetFollowSymlinks(true);
|
searcher.SetFollowSymlinks(true);
|
||||||
|
auto root_path = PathName(string_ref(m_root));
|
||||||
searcher.SetCallback(
|
searcher.SetCallback(
|
||||||
fastf::FileSearcher::CallbackType(
|
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);
|
searcher.Search(ext, ignore);
|
||||||
|
|
Loading…
Reference in a new issue