From 7cb9b465d2d93d035190c9afd0916cf5d8b0d0bb Mon Sep 17 00:00:00 2001 From: Martin Quinson Date: Mon, 24 Jul 2017 23:03:17 +0200 Subject: [PATCH] cosmetics --- src/instr/instr_paje_types.cpp | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) 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); } -- 2.20.1