X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/ccfb980e299d6cefe0dc683facfe33232336c5da..ac9974f6e1466b7e6105afbe89ea2f5a41ba1c79:/src/instr/instr_paje_events.hpp diff --git a/src/instr/instr_paje_events.hpp b/src/instr/instr_paje_events.hpp index 3b1da03f7c..d1004b16eb 100644 --- a/src/instr/instr_paje_events.hpp +++ b/src/instr/instr_paje_events.hpp @@ -70,7 +70,7 @@ class StateEvent : public PajeEvent { std::string filename = "(null)"; int linenumber = -1; #endif - TIData* extra_; + std::unique_ptr extra_; public: StateEvent(Container* container, Type* type, e_event_type event_type, EntityValue* value, TIData* extra); @@ -84,12 +84,12 @@ class LinkEvent : public PajeEvent { int size_ = -1; public: - LinkEvent(Container* container, Type* type, e_event_type event_type, Container* sourceContainer, std::string value, - std::string key, int size) + LinkEvent(Container* container, Type* type, e_event_type event_type, Container* sourceContainer, + const std::string& value, const std::string& key, int size) : PajeEvent(container, type, SIMIX_get_clock(), event_type) , endpoint_(sourceContainer) - , value_(std::move(value)) - , key_(std::move(key)) + , value_(value) + , key_(key) , size_(size) { }