Better const correctness
This commit is contained in:
parent
24f671e924
commit
acbc60f3e3
5 changed files with 8 additions and 8 deletions
|
@ -564,7 +564,7 @@ ExtrusionEntityCollection make_brim(const Print &print, PrintTryCancel try_cance
|
|||
}
|
||||
#endif // BRIM_DEBUG_TO_SVG
|
||||
|
||||
const bool could_brim_intersects_skirt = std::any_of(print.objects().begin(), print.objects().end(), [&print](PrintObject *object) {
|
||||
const bool could_brim_intersects_skirt = std::any_of(print.objects().begin(), print.objects().end(), [&print](const PrintObject *object) {
|
||||
const BrimType &bt = object->config().brim_type;
|
||||
return (bt == btOuterOnly || bt == btOuterAndInner) && print.config().skirt_distance.value < object->config().brim_width;
|
||||
});
|
||||
|
|
|
@ -3908,7 +3908,7 @@ static void generate_support_areas(Print &print, const BuildVolume &build_volume
|
|||
void fff_tree_support_generate(PrintObject &print_object, std::function<void()> throw_on_cancel)
|
||||
{
|
||||
size_t idx = 0;
|
||||
for (PrintObject* po : print_object.print()->objects()) {
|
||||
for (const PrintObject *po : print_object.print()->objects()) {
|
||||
if (po == &print_object)
|
||||
break;
|
||||
++idx;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue