Fixes 1 Bug and 8 Compiler Warnings (#10654)
* fixes: keys_map is initialized with itself [-Winit-self] * fixes: operation on repeats may be undefined [-Wsequence-point] * fixes: warning: suggest parentheses around && within || [-Wparentheses] * fixes: moving brim_points to itself [-Wself-move] * fixes: operation on unprintability may be undefined [-Wsequence-point] * fixes: extra tokens at end of #endif directive [-Wendif-labels] * fixes: converting to non-pointer type int from NULL [-Wconversion-null] * review result: simplifies fix 'operation on repeats may be undefined'
This commit is contained in:
committed by
GitHub
parent
8e84d21b7f
commit
aa8b8620da
@@ -5915,9 +5915,9 @@ bool GCode::_needSAFC(const ExtrusionPath &path)
|
||||
};
|
||||
|
||||
return std::any_of(std::begin(supported_patterns), std::end(supported_patterns), [&](const InfillPattern pattern) {
|
||||
return this->on_first_layer() && this->config().bottom_surface_pattern == pattern ||
|
||||
path.role() == erSolidInfill && this->config().internal_solid_infill_pattern == pattern ||
|
||||
path.role() == erTopSolidInfill && this->config().top_surface_pattern == pattern;
|
||||
return (this->on_first_layer() && this->config().bottom_surface_pattern == pattern) ||
|
||||
(path.role() == erSolidInfill && this->config().internal_solid_infill_pattern == pattern) ||
|
||||
(path.role() == erTopSolidInfill && this->config().top_surface_pattern == pattern);
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user