use constexpr if

This commit is contained in:
Siarhei Fedartsou
2024-05-20 18:49:44 +02:00
parent aaf0c1ebb3
commit cd2178905f
2 changed files with 8 additions and 4 deletions
+2 -2
View File
@@ -24,7 +24,7 @@ void SearchEngineData<CH>::InitializeOrClearMapMatchingThreadLocalStorage(unsign
}
else
{
map_matching_forward_heap_1.reset(new QueryHeap(number_of_nodes));
map_matching_forward_heap_1.reset(new MapMatchingQueryHeap(number_of_nodes));
}
if (map_matching_reverse_heap_1.get())
@@ -33,7 +33,7 @@ void SearchEngineData<CH>::InitializeOrClearMapMatchingThreadLocalStorage(unsign
}
else
{
map_matching_reverse_heap_1.reset(new QueryHeap(number_of_nodes));
map_matching_reverse_heap_1.reset(new MapMatchingQueryHeap(number_of_nodes));
}
}