Fix compiler warnings and failing compilation on macOS

This commit is contained in:
Lukáš Hejl 2020-09-10 22:57:58 +02:00
parent 7ef5def077
commit 137e7a0712
2 changed files with 8 additions and 8 deletions

View file

@ -377,7 +377,7 @@ void PrintObject::infill()
BOOST_LOG_TRIVIAL(debug) << "Filling layers in parallel - start";
tbb::parallel_for(
tbb::blocked_range<size_t>(0, m_layers.size()),
[this, &adaptive_fill_octree, &support_fill_octree](const tbb::blocked_range<size_t>& range) {
[this, &adaptive_fill_octree = adaptive_fill_octree, &support_fill_octree = support_fill_octree](const tbb::blocked_range<size_t>& range) {
for (size_t layer_idx = range.begin(); layer_idx < range.end(); ++ layer_idx) {
m_print->throw_if_canceled();
m_layers[layer_idx]->make_fills(adaptive_fill_octree.get(), support_fill_octree.get());