mirror of
https://git.mirrors.martin98.com/https://github.com/slic3r/Slic3r.git
synced 2025-08-03 20:40:42 +08:00
remove deprecated code and add new one (#3775)
change auto_ptr to unique_ptr
This commit is contained in:
parent
dddbe64b86
commit
52a94e8f40
@ -882,7 +882,7 @@ Print::_make_brim()
|
||||
}
|
||||
}
|
||||
|
||||
std::auto_ptr<Fill> filler(Fill::new_from_type(ipRectilinear));
|
||||
std::unique_ptr<Fill> filler(Fill::new_from_type(ipRectilinear));
|
||||
filler->min_spacing = flow.spacing();
|
||||
filler->dont_adjust = true;
|
||||
filler->density = 1;
|
||||
|
@ -57,7 +57,7 @@ SLAPrint::slice()
|
||||
|
||||
// generate infill
|
||||
if (this->config.fill_density < 100) {
|
||||
std::auto_ptr<Fill> fill(Fill::new_from_type(this->config.fill_pattern.value));
|
||||
std::unique_ptr<Fill> 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(_fill->clone());
|
||||
std::unique_ptr<Fill> fill(_fill->clone());
|
||||
fill->layer_id = i;
|
||||
fill->z = layer.print_z;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user