fixes: moving a temporary object prevents copy elision [-Wpessimizing-move]

This commit is contained in:
Raoul Rubien 2025-09-13 03:30:25 +02:00 committed by Dipl.-Ing. Raoul Rubien, BSc
parent 3930049b9d
commit fbc641e639

View file

@ -2511,7 +2511,7 @@ void TreeSupport::drop_nodes()
m_object->print()->set_status(60 + int(10 * (1 - float(layer_nr) / contact_nodes.size())), _u8L("Generating support"));// (boost::format(_u8L("Support: propagate branches at layer %d")) % layer_nr).str());
Polygons layer_contours = std::move(m_ts_data->get_contours_with_holes(obj_layer_nr));
Polygons layer_contours { m_ts_data->get_contours_with_holes(obj_layer_nr) };
//std::unordered_map<Line, bool, LineHash>& mst_line_x_layer_contour_cache = m_mst_line_x_layer_contour_caches[layer_nr];
tbb::concurrent_unordered_map<Line, bool, LineHash> mst_line_x_layer_contour_cache;
auto is_line_cut_by_contour = [&mst_line_x_layer_contour_cache,&layer_contours](Point a, Point b)