mirror of https://github.com/AxioDL/amuse.git
Fix AppleClang -Wrange-loop-analysis warnings
This commit is contained in:
parent
df7136d265
commit
217e791b88
|
@ -519,7 +519,7 @@ void LayersTableView::deleteSelection() {
|
||||||
|
|
||||||
std::vector<std::pair<amuse::LayerMapping, int>> data;
|
std::vector<std::pair<amuse::LayerMapping, int>> data;
|
||||||
data.reserve(list.size());
|
data.reserve(list.size());
|
||||||
for (const QModelIndex idx : list) {
|
for (const QModelIndex& idx : list) {
|
||||||
data.emplace_back(amuse::LayerMapping{}, idx.row());
|
data.emplace_back(amuse::LayerMapping{}, idx.row());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1172,7 +1172,7 @@ void PageTableView::deleteSelection() {
|
||||||
|
|
||||||
std::vector<std::pair<uint8_t, amuse::SongGroupIndex::PageEntry>> data;
|
std::vector<std::pair<uint8_t, amuse::SongGroupIndex::PageEntry>> data;
|
||||||
data.reserve(list.size());
|
data.reserve(list.size());
|
||||||
for (const QModelIndex idx : list) {
|
for (const QModelIndex& idx : list) {
|
||||||
data.emplace_back(model()->data(idx).toInt() - 1, amuse::SongGroupIndex::PageEntry{});
|
data.emplace_back(model()->data(idx).toInt() - 1, amuse::SongGroupIndex::PageEntry{});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -243,7 +243,7 @@ CommandWidget::CommandWidget(QWidget* parent, amuse::SoundMacro::ICmd* cmd, amus
|
||||||
cb->setFixedHeight(30);
|
cb->setFixedHeight(30);
|
||||||
cb->setProperty("fieldIndex", f);
|
cb->setProperty("fieldIndex", f);
|
||||||
cb->setProperty("fieldName", fieldName);
|
cb->setProperty("fieldName", fieldName);
|
||||||
for (const auto choice : field.m_choices) {
|
for (const auto& choice : field.m_choices) {
|
||||||
if (choice.empty()) {
|
if (choice.empty()) {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue