mirror of
https://github.com/KingDuckZ/dindexer.git
synced 2024-11-25 00:53:43 +00:00
Fix release build.
This commit is contained in:
parent
292e32b38f
commit
9a25846880
2 changed files with 1 additions and 2 deletions
|
@ -206,9 +206,9 @@ namespace din {
|
|||
}
|
||||
|
||||
void Indexer::calculate_hash() {
|
||||
PathName base_path(m_local_data->paths.front().path);
|
||||
#if !defined(NDEBUG)
|
||||
std::sort(m_local_data->paths.begin(), m_local_data->paths.end());
|
||||
PathName base_path(m_local_data->paths.front().path);
|
||||
for (auto& itm : m_local_data->paths) {
|
||||
itm.hash.part_a = 1;
|
||||
itm.hash.part_b = 1;
|
||||
|
|
|
@ -49,6 +49,5 @@ int main (int parArgc, char* parArgv[]) {
|
|||
searcher.Search(ext, ignore);
|
||||
|
||||
indexer.calculate_hash();
|
||||
indexer.dump();
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue