- NetCardImpl(char *name, int id, e_surf_network_element_type_t rcType, As *rcComponent)
- : p_rcComponent(rcComponent), p_rcType(rcType), m_id(id), p_name(name) {}
+ NetCardImpl(const char *name, e_surf_network_element_type_t rcType, As *rcComponent)
+ : p_rcComponent(rcComponent),
+ p_rcType(rcType),
+ p_name(xbt_strdup(name)) {}