further fixes
This commit is contained in:
@@ -70,19 +70,8 @@ void pose_prefetch_lookup::emplace(
|
||||
directory_it = emplace_dir(directory_it, directory);
|
||||
}
|
||||
|
||||
const auto [ index_it, match ] = find_index(
|
||||
emplace_hint_dir(
|
||||
directory_it,
|
||||
index
|
||||
);
|
||||
|
||||
if (not match)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
emplace_hint_dir_index(
|
||||
directory_it,
|
||||
index_it,
|
||||
index,
|
||||
id
|
||||
);
|
||||
@@ -91,13 +80,10 @@ void pose_prefetch_lookup::emplace(
|
||||
|
||||
void pose_prefetch_lookup::emplace_hint_dir(
|
||||
directory_iterator directory_it,
|
||||
const std::filesystem::path& directory,
|
||||
const index_type index,
|
||||
const dynamic_pose_store::id_type id
|
||||
) {
|
||||
|
||||
directory_it = emplace_dir(directory_it, directory);
|
||||
|
||||
const auto [ index_it, match ] = find_index(
|
||||
directory_it,
|
||||
index
|
||||
@@ -105,7 +91,7 @@ void pose_prefetch_lookup::emplace_hint_dir(
|
||||
|
||||
if (match) [[unlikely]]
|
||||
{
|
||||
const auto dir_index = dir_it->second;
|
||||
const auto dir_index = directory_it.first->second;
|
||||
const auto id_index = index_it - m_directory_indices.begin() - dir_index;
|
||||
m_pose_ids[id_index] = match; // TODO I guess I should warn?!?
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user