Attempt to fix failure in fff_print_tests on MAC Asan
This commit is contained in:
parent
3706a2c777
commit
2aa6d77c1b
@ -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);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user