1
0
Fork 0
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:
King_DuckZ 2015-11-11 17:14:51 +00:00
parent 292e32b38f
commit 9a25846880
2 changed files with 1 additions and 2 deletions

View file

@ -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;

View file

@ -49,6 +49,5 @@ int main (int parArgc, char* parArgv[]) {
searcher.Search(ext, ignore);
indexer.calculate_hash();
indexer.dump();
return 0;
}