X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/0b434542d7de83f5e040e7c03d5e98cd9c9f5d8a..7d002fc71f86ae6e429f611deffc33dceb18b31c:/src/instr/instr_paje_types.cpp diff --git a/src/instr/instr_paje_types.cpp b/src/instr/instr_paje_types.cpp index 12f6266d60..af481486fb 100644 --- a/src/instr/instr_paje_types.cpp +++ b/src/instr/instr_paje_types.cpp @@ -130,7 +130,7 @@ type_t PJ_type_container_new (const char *name, type_t father) if(father){ XBT_DEBUG("ContainerType %s(%s), child of %s(%s)", ret->name, ret->id, father->name, father->id); - new DefineContainerEvent(ret); + DefineContainerEvent(ret); } return ret; } @@ -156,13 +156,13 @@ type_t PJ_type_variable_new (const char *name, const char *color, type_t father) type_t ret = nullptr; char white[INSTR_DEFAULT_STR_SIZE] = "1 1 1"; - if (!color){ + if (not color) { ret = newType (name, name, white, TYPE_VARIABLE, father); }else{ ret = newType (name, name, color, TYPE_VARIABLE, father); } XBT_DEBUG("VariableType %s(%s), child of %s(%s)", ret->name, ret->id, father->name, father->id); - new DefineVariableTypeEvent (ret); + DefineVariableTypeEvent (ret); return ret; } @@ -179,7 +179,7 @@ type_t PJ_type_link_new (const char *name, type_t father, type_t source, type_t ret = newType (name, key, nullptr, TYPE_LINK, father); XBT_DEBUG("LinkType %s(%s), child of %s(%s) %s(%s)->%s(%s)", ret->name, ret->id, father->name, father->id, source->name, source->id, dest->name, dest->id); - DefineLinkTypeEvent(ret, source, dest); + new DefineLinkTypeEvent(ret, source, dest); return ret; } @@ -195,4 +195,4 @@ type_t PJ_type_state_new (const char *name, type_t father) XBT_DEBUG("StateType %s(%s), child of %s(%s)", ret->name, ret->id, father->name, father->id); new DefineStateTypeEvent(ret); return ret; -} \ No newline at end of file +}