PD: [skip ci] Fix several clazy issues:
* Maybe you meant to call base method instead [-Wclazy-skipped-base-method] * Missing reference in range-for with non trivial type [-Wclazy-range-loop-reference] * Mixing iterators with const_iterators [-Wclazy-strict-iterators] * Unused QByteArray [-Wclazy-unused-non-trivial-variable] * C++11 range-loop might detach Qt container (QList) [-Wclazy-range-loop-detach]
This commit is contained in:
@@ -118,7 +118,7 @@ void ViewProviderLoft::highlightSection(bool on)
|
||||
{
|
||||
PartDesign::Loft* pcLoft = static_cast<PartDesign::Loft*>(getObject());
|
||||
auto sections = pcLoft->Sections.getSubListValues();
|
||||
for (auto it : sections) {
|
||||
for (auto& it : sections) {
|
||||
// only take the entire shape when we have a sketch selected, but
|
||||
// not a point of the sketch
|
||||
auto subName = it.second.empty() ? "" : it.second.front();
|
||||
|
||||
Reference in New Issue
Block a user