use constexpr if

This commit is contained in:
Siarhei Fedartsou 2024-05-21 20:38:34 +02:00
parent a37f43bf3f
commit 298a8e4d2f

View File

@ -24,7 +24,7 @@ void SearchEngineData<CH>::InitializeOrClearMapMatchingThreadLocalStorage(unsign
}
else
{
map_matching_forward_heap_1.reset(new MapMatchingQueryHeap(number_of_nodes));
map_matching_forward_heap_1.reset(new QueryHeap(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 MapMatchingQueryHeap(number_of_nodes));
map_matching_reverse_heap_1.reset(new QueryHeap(number_of_nodes));
}
}