cellSearch: use std::hash (#8981)

This commit is contained in:
Eladash 2020-09-26 19:28:19 +03:00 committed by GitHub
parent 92efaf0bba
commit b79d236bfa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 2 deletions

View File

@ -6,7 +6,6 @@
#include "cellSysutil.h"
#include "cellSearch.h"
#include "xxhash.h"
#include "Utilities/StrUtil.h"
LOG_CHANNEL(cellSearch);
@ -398,7 +397,7 @@ error_code cellSearchStartContentSearch(CellSearchContentSearchType type, CellSe
// TODO - Identify sorting method and insert the appropriate values where applicable
const std::string item_path(relative_vpath + "/" + item.name);
const u64 hash = XXH64(item_path.c_str(), item_path.length(), 0);
const u64 hash = std::hash<std::string>()(item_path);
auto found = content_map->find(hash);
if (found == content_map->end()) // content isn't yet being tracked
{