X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/fe304706848f0a64477d4687b3ea97d5b9a0c35c..b60c8af597ab1859e4b804954e6e6df37e8cff06:/src/instr/jedule/jedule_events.cpp diff --git a/src/instr/jedule/jedule_events.cpp b/src/instr/jedule/jedule_events.cpp index 2744fcd87e..ea2dd3703e 100644 --- a/src/instr/jedule/jedule_events.cpp +++ b/src/instr/jedule/jedule_events.cpp @@ -1,4 +1,4 @@ -/* Copyright (c) 2010-2019. The SimGrid Team. +/* Copyright (c) 2010-2020. The SimGrid Team. * All rights reserved. */ /* This program is free software; you can redistribute it and/or modify it @@ -17,10 +17,10 @@ void Event::add_resources(const std::vector& host_selection) get_resource_selection_by_hosts(this->resource_subsets_, host_selection); } -void Event::add_characteristic(char* characteristic) +void Event::add_characteristic(const char* characteristic) { xbt_assert( characteristic != nullptr ); - this->characteristics_list_.push_back(characteristic); + this->characteristics_list_.emplace_back(characteristic); } void Event::add_info(char* key, char* value)