X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/a001b13d7aa269a90f035f58c71778c6812b07f6..d77b02b38c73cf34e18a45339d3c3cf8cd23c72b:/examples/s4u/app-bittorrent/s4u-bittorrent.cpp diff --git a/examples/s4u/app-bittorrent/s4u-bittorrent.cpp b/examples/s4u/app-bittorrent/s4u-bittorrent.cpp index 38709b0be3..9307ba0031 100644 --- a/examples/s4u/app-bittorrent/s4u-bittorrent.cpp +++ b/examples/s4u/app-bittorrent/s4u-bittorrent.cpp @@ -21,8 +21,7 @@ int main(int argc, char* argv[]) HostBittorrent::EXTENSION_ID = simgrid::s4u::Host::extension_create(); - std::vector list; - simgrid::s4u::Engine::getInstance()->getHostList(&list); + std::vector list = simgrid::s4u::Engine::getInstance()->getHostList(); for (auto const& host : list) host->extension_set(new HostBittorrent(host));