mirror of
https://git.mirrors.martin98.com/https://github.com/slic3r/Slic3r.git
synced 2025-08-12 21:29:00 +08:00
Changed calling convention to get gcc49 to not mis-parse as an initializer list
This commit is contained in:
parent
d11f623ca5
commit
5b06201e18
@ -186,7 +186,7 @@ void
|
||||
SurfaceCollection::keep_type(const SurfaceType type)
|
||||
{
|
||||
// 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.cend());
|
||||
}
|
||||
|
||||
@ -197,7 +197,7 @@ SurfaceCollection::keep_types(const SurfaceType *types, size_t ntypes)
|
||||
for (size_t i = 0; i < ntypes; ++i)
|
||||
n |= types[i]; // form bitmask.
|
||||
// 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.cend());
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user