X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/595e59c568ff5f8510de201bfd800951cdc2adcb..befbbbe1fbb31663a8f91e24ce12df271cf4ae79:/src/instr/instr_paje_types.cpp diff --git a/src/instr/instr_paje_types.cpp b/src/instr/instr_paje_types.cpp index c9baee5117..2eb903041b 100644 --- a/src/instr/instr_paje_types.cpp +++ b/src/instr/instr_paje_types.cpp @@ -136,7 +136,7 @@ type_t PJ_type_container_new (const char *name, type_t father) } type_t PJ_type_event_new (const char *name, type_t father) -{ +{ if (name == nullptr){ THROWF (tracing_error, 0, "can't create an event type with a nullptr name"); } @@ -156,7 +156,7 @@ 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);