Revert of 00e440e3006d43957f3e865d225b340c3be2e1fd

This commit is contained in:
enricoturri1966 2023-04-27 13:04:44 +02:00 committed by Lukas Matena
parent 2aa6d77c1b
commit 0f15eb6600

View File

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