X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/7eed757b0efb54a58b781ea4a8c963f0b6321b92..7cb9b465d2d93d035190c9afd0916cf5d8b0d0bb:/src/instr/instr_paje_types.cpp diff --git a/src/instr/instr_paje_types.cpp b/src/instr/instr_paje_types.cpp index daa0d4eaf7..389ff98d77 100644 --- a/src/instr/instr_paje_types.cpp +++ b/src/instr/instr_paje_types.cpp @@ -112,14 +112,10 @@ type_t PJ_type_container_new (const char *name, type_t father) THROWF (tracing_error, 0, "can't create a container type with a nullptr name"); } - type_t ret = nullptr; - - ret = newType (name, name, nullptr, TYPE_CONTAINER, father); - if (father == nullptr){ + type_t ret = newType(name, name, nullptr, TYPE_CONTAINER, father); + if (father == nullptr) { rootType = ret; - } - - if(father){ + } else { XBT_DEBUG("ContainerType %s(%s), child of %s(%s)", ret->name, ret->id, father->name, father->id); DefineContainerEvent(ret); }