]> AND Public Git Repository - simgrid.git/blobdiff - src/instr/jedule/jedule_events.cpp
Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
mc_api::compare_automaton_exp_lable() defined. It's called in evaluate_label()
[simgrid.git] / src / instr / jedule / jedule_events.cpp
index 2744fcd87e2591f9c21cd734407c6e0bb2e76549..ea2dd3703edc218d587156d73432bbc0608b3898 100644 (file)
@@ -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<sg_host_t>& 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)