- NetCardImpl(const char *name, NetCard::Type componentType, AsImpl *containingAS)
- : name_(xbt_strdup(name)),
- componentType_(componentType),
- containingAS_(containingAS)
+ NetCardImpl(std::string name, NetCard::Type componentType, AsImpl* containingAS)
+ : name_(name), componentType_(componentType), containingAS_(containingAS)