16 std::vector<QString> bros_names;
17 bros_names.reserve(map.size());
19 map.begin(), map.end(), std::back_inserter(bros_names),
20 [&](
const auto& res) { bros_names.push_back(res.metadata().getName()); });
22 auto new_name = ossia::net::sanitize_name(obj->metadata().getName(), bros_names);
23 obj->metadata().setName(new_name);
25 map.unsafe_map().insert(obj);
27 map.mutable_added(*obj);
32 deserializeRemainingComponents(comps, obj);