Fix warning of ignored variable in structured binding

This commit is contained in:
tamasmeszaros 2021-05-19 10:08:01 +02:00
parent 4a134f5320
commit e892550cb0

View file

@ -37,8 +37,12 @@ void RotoptimizeJob::prepare()
m_selected_object_ids.clear();
m_selected_object_ids.reserve(sel.size());
for (auto &[obj_idx, ignore] : sel)
m_selected_object_ids.emplace_back(obj_idx);
for (const auto &s : sel) {
int obj_id;
std::tie(obj_id, std::ignore) = s;
m_selected_object_ids.emplace_back(obj_id);
}
}
void RotoptimizeJob::process()