X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/1bf033cc925aa31693ef5163ea056fde5b75ff1e..4a8bc21517c2e7759a0036d879338f84ed6bf56e:/src/instr/jedule/jedule_platform.cpp diff --git a/src/instr/jedule/jedule_platform.cpp b/src/instr/jedule/jedule_platform.cpp index 2b80a60011..9a02ccb3fa 100644 --- a/src/instr/jedule/jedule_platform.cpp +++ b/src/instr/jedule/jedule_platform.cpp @@ -64,13 +64,13 @@ void Container::add_resources(std::vector hosts) void Container::create_hierarchy(sg_netzone_t from_as) { - if (from_as->get_children()->empty()) { + if (from_as->get_children().empty()) { // I am no AS // add hosts to jedule platform std::vector table = from_as->get_all_hosts(); this->add_resources(table); } else { - for (auto const& nz : *from_as->get_children()) { + for (auto const& nz : from_as->get_children()) { jed_container_t child_container = new simgrid::jedule::Container(std::string(nz->get_cname())); this->add_child(child_container); child_container->create_hierarchy(nz);