Fix several clazy issue:

* Missing reference in range-for with non trivial type [-Wclazy-range-loop-reference]
This commit is contained in:
wmayer
2022-07-24 22:29:06 +02:00
parent bf7e6aac4a
commit 0bef4e82f2
12 changed files with 17 additions and 17 deletions

View File

@@ -56,7 +56,7 @@ DlgAddProperty::DlgAddProperty(QWidget* parent,
std::vector<Base::Type> types;
Base::Type::getAllDerivedFrom(Base::Type::fromName("App::Property"),types);
for(auto type : types) {
for(const auto& type : types) {
ui->comboType->addItem(QString::fromLatin1(type.getName()));
if(type == defType)
ui->comboType->setCurrentIndex(ui->comboType->count()-1);