diff --git a/xs/src/libslic3r/Print.cpp b/xs/src/libslic3r/Print.cpp index a3007801d..be6f24f38 100644 --- a/xs/src/libslic3r/Print.cpp +++ b/xs/src/libslic3r/Print.cpp @@ -882,7 +882,7 @@ Print::_make_brim() } } - std::auto_ptr filler(Fill::new_from_type(ipRectilinear)); + std::unique_ptr filler(Fill::new_from_type(ipRectilinear)); filler->min_spacing = flow.spacing(); filler->dont_adjust = true; filler->density = 1; diff --git a/xs/src/libslic3r/SLAPrint.cpp b/xs/src/libslic3r/SLAPrint.cpp index 826e6184e..02043e191 100644 --- a/xs/src/libslic3r/SLAPrint.cpp +++ b/xs/src/libslic3r/SLAPrint.cpp @@ -57,7 +57,7 @@ SLAPrint::slice() // generate infill if (this->config.fill_density < 100) { - std::auto_ptr fill(Fill::new_from_type(this->config.fill_pattern.value)); + std::unique_ptr fill(Fill::new_from_type(this->config.fill_pattern.value)); fill->bounding_box.merge(Point::new_scale(bb.min.x, bb.min.y)); fill->bounding_box.merge(Point::new_scale(bb.max.x, bb.max.y)); fill->min_spacing = this->config.get_abs_value("infill_extrusion_width", this->config.layer_height.value); @@ -184,7 +184,7 @@ SLAPrint::_infill_layer(size_t i, const Fill* _fill) // Generate internal infill { - std::auto_ptr fill(_fill->clone()); + std::unique_ptr fill(_fill->clone()); fill->layer_id = i; fill->z = layer.print_z;