A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
simgrid.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Prefer to use emplace_back.
[simgrid.git]
/
src
/
instr
/
jedule
/
jedule_events.cpp
diff --git
a/src/instr/jedule/jedule_events.cpp
b/src/instr/jedule/jedule_events.cpp
index
2744fcd
..
ea2dd37
100644
(file)
--- a/
src/instr/jedule/jedule_events.cpp
+++ b/
src/instr/jedule/jedule_events.cpp
@@
-1,4
+1,4
@@
-/* Copyright (c) 2010-20
19
. The SimGrid Team.
+/* Copyright (c) 2010-20
20
. The SimGrid Team.
* All rights reserved. */
/* This program is free software; you can redistribute it and/or modify it
* 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);
}
get_resource_selection_by_hosts(this->resource_subsets_, host_selection);
}
-void Event::add_characteristic(char* characteristic)
+void Event::add_characteristic(c
onst c
har* characteristic)
{
xbt_assert( characteristic != nullptr );
{
xbt_assert( characteristic != nullptr );
- this->characteristics_list_.
push
_back(characteristic);
+ this->characteristics_list_.
emplace
_back(characteristic);
}
void Event::add_info(char* key, char* value)
}
void Event::add_info(char* key, char* value)