mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-12-24 00:28:38 -07:00
fixes: moving a temporary object prevents copy elision [-Wpessimizing-move]
This commit is contained in:
parent
3930049b9d
commit
fbc641e639
1 changed files with 1 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue