Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
try to please sanitizers
authorFrederic Suter <frederic.suter@cc.in2p3.fr>
Sat, 28 Oct 2017 07:30:15 +0000 (09:30 +0200)
committerFrederic Suter <frederic.suter@cc.in2p3.fr>
Sat, 28 Oct 2017 07:30:15 +0000 (09:30 +0200)
src/instr/instr_paje_types.cpp
src/instr/instr_paje_types.hpp
src/instr/instr_private.hpp

index efac49e..4ae22bb 100644 (file)
@@ -186,7 +186,7 @@ EntityValue* ValueType::getEntityValue(std::string name)
 
 ContainerType* Type::createRootType()
 {
-  rootType = static_cast<ContainerType*>(new simgrid::instr::Type("0", "0", "", nullptr));
+  rootType = new ContainerType("0");
   return rootType;
 }
 
index 8ec8648..8306af0 100644 (file)
@@ -56,6 +56,7 @@ public:
 
 class ContainerType : public Type {
 public:
+  ContainerType(std::string name) : Type(name, name, "", nullptr){};
   ContainerType(std::string name, Type* father);
 };
 
index 4aa9285..97b9e9b 100644 (file)
@@ -85,8 +85,8 @@ public:
   e_event_type eventType_;
   PajeEvent(Container* container, Type* type, double timestamp, e_event_type eventType)
       : container(container), type(type), timestamp_(timestamp), eventType_(eventType){};
-  virtual void print() = 0;
   virtual ~PajeEvent();
+  virtual void print() = 0;
   void insertIntoBuffer();
 };