From 0c33ee7f67d9a69bef7396ef12bbccecbb0868b1 Mon Sep 17 00:00:00 2001 From: Frederic Suter Date: Sat, 28 Oct 2017 09:30:15 +0200 Subject: [PATCH] try to please sanitizers --- src/instr/instr_paje_types.cpp | 2 +- src/instr/instr_paje_types.hpp | 1 + src/instr/instr_private.hpp | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/instr/instr_paje_types.cpp b/src/instr/instr_paje_types.cpp index efac49e541..4ae22bb97b 100644 --- a/src/instr/instr_paje_types.cpp +++ b/src/instr/instr_paje_types.cpp @@ -186,7 +186,7 @@ EntityValue* ValueType::getEntityValue(std::string name) ContainerType* Type::createRootType() { - rootType = static_cast(new simgrid::instr::Type("0", "0", "", nullptr)); + rootType = new ContainerType("0"); return rootType; } diff --git a/src/instr/instr_paje_types.hpp b/src/instr/instr_paje_types.hpp index 8ec86488b8..8306af0d35 100644 --- a/src/instr/instr_paje_types.hpp +++ b/src/instr/instr_paje_types.hpp @@ -56,6 +56,7 @@ public: class ContainerType : public Type { public: + ContainerType(std::string name) : Type(name, name, "", nullptr){}; ContainerType(std::string name, Type* father); }; diff --git a/src/instr/instr_private.hpp b/src/instr/instr_private.hpp index 4aa92854ed..97b9e9b78a 100644 --- a/src/instr/instr_private.hpp +++ b/src/instr/instr_private.hpp @@ -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(); }; -- 2.20.1