Attempt to fix failure in fff_print_tests on MAC Asan

This commit is contained in:
enricoturri1966 2023-04-27 11:48:27 +02:00 committed by Lukas Matena
parent 3706a2c777
commit 2aa6d77c1b

View File

@ -100,7 +100,7 @@ void LinesBucketQueue::emplace_back_bucket(std::vector<ExtrusionPaths> &&paths,
_pq.push(&_buckets.back()); _pq.push(&_buckets.back());
auto newSize = _buckets.capacity(); auto newSize = _buckets.capacity();
if (oldSize != newSize) { // pointers change if (oldSize != newSize) { // pointers change
decltype(_pq) newQueue; std::priority_queue<LinesBucket*, std::vector<LinesBucket*>, LinesBucketPtrComp> newQueue;
for (LinesBucket &bucket : _buckets) { newQueue.push(&bucket); } for (LinesBucket &bucket : _buckets) { newQueue.push(&bucket); }
std::swap(_pq, newQueue); std::swap(_pq, newQueue);
} }