mirror of
https://git.mirrors.martin98.com/https://github.com/slic3r/Slic3r.git
synced 2025-08-14 23:55:56 +08:00
Start cleanup so perl builds again
This commit is contained in:
parent
4a62c75c11
commit
1f392df4b9
@ -165,7 +165,7 @@ SurfaceCollection::remove_type(const SurfaceType type)
|
|||||||
{
|
{
|
||||||
// Use stl remove_if to remove
|
// Use stl remove_if to remove
|
||||||
auto ptr {std::remove_if(surfaces.begin(), surfaces.end(),[type] (Surface& s) { return s.surface_type == type; })};
|
auto ptr {std::remove_if(surfaces.begin(), surfaces.end(),[type] (Surface& s) { return s.surface_type == type; })};
|
||||||
surfaces.erase(ptr, surfaces.end());
|
surfaces.erase(ptr, surfaces.cend());
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
@ -187,7 +187,7 @@ SurfaceCollection::keep_type(const SurfaceType type)
|
|||||||
{
|
{
|
||||||
// Use stl remove_if to remove
|
// Use stl remove_if to remove
|
||||||
auto ptr {std::remove_if(surfaces.begin(), surfaces.end(),[type] (const Surface& s) { return s.surface_type != type; })};
|
auto ptr {std::remove_if(surfaces.begin(), surfaces.end(),[type] (const Surface& s) { return s.surface_type != type; })};
|
||||||
surfaces.erase(ptr, surfaces.end());
|
surfaces.erase(ptr, surfaces.cend());
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
@ -198,7 +198,7 @@ SurfaceCollection::keep_types(const SurfaceType *types, size_t ntypes)
|
|||||||
n |= types[i]; // form bitmask.
|
n |= types[i]; // form bitmask.
|
||||||
// Use stl remove_if to remove
|
// Use stl remove_if to remove
|
||||||
auto ptr {std::remove_if(surfaces.begin(), surfaces.end(),[n] (const Surface& s) { return s.surface_type & n != s.surface_type; })};
|
auto ptr {std::remove_if(surfaces.begin(), surfaces.end(),[n] (const Surface& s) { return s.surface_type & n != s.surface_type; })};
|
||||||
surfaces.erase(ptr, surfaces.end());
|
surfaces.erase(ptr, surfaces.cend());
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
Loading…
x
Reference in New Issue
Block a user