remove deprecated code and add new one (#3775)

change auto_ptr to unique_ptr
This commit is contained in:
Ranvir Singh 2017-03-20 00:32:59 +05:30 committed by Joseph Lenox
parent dddbe64b86
commit 52a94e8f40
2 changed files with 3 additions and 3 deletions

View File

@ -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;

View File

@ -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;