From 822ea84e0d483e4a4d8c5bdbb82c7a89e35618e2 Mon Sep 17 00:00:00 2001 From: PavelMikus Date: Mon, 13 Mar 2023 17:08:41 +0100 Subject: [PATCH] Fix lambda having modify access - not needed --- src/libslic3r/PrintObject.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/libslic3r/PrintObject.cpp b/src/libslic3r/PrintObject.cpp index 2bd19ba5a2..68ddb7ba91 100644 --- a/src/libslic3r/PrintObject.cpp +++ b/src/libslic3r/PrintObject.cpp @@ -2021,11 +2021,11 @@ void PrintObject::bridge_over_infill() return expanded_bridged_area; }; - tbb::parallel_for(tbb::blocked_range(0, clustered_layers_for_threads.size()), [po = this, &surfaces_by_layer, - &clustered_layers_for_threads, - &gather_areas_w_depth, &infill_lines, - &determine_bridging_angle, - &construct_anchored_polygon]( + tbb::parallel_for(tbb::blocked_range(0, clustered_layers_for_threads.size()), [po = static_cast(this), + &surfaces_by_layer, &clustered_layers_for_threads, + gather_areas_w_depth, &infill_lines, + determine_bridging_angle, + construct_anchored_polygon]( tbb::blocked_range r) { for (size_t cluster_idx = r.begin(); cluster_idx < r.end(); cluster_idx++) { for (size_t job_idx = 0; job_idx < clustered_layers_for_threads[cluster_idx].size(); job_idx++) {