X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/4c61dcfc019a2103bbe53785ee778e3831bcf4a6..c6683b41cf9ecda70c1d4d75d1effc61903a894f:/examples/cpp/dag-from-dax/s4u-dag-from-dax.cpp diff --git a/examples/cpp/dag-from-dax/s4u-dag-from-dax.cpp b/examples/cpp/dag-from-dax/s4u-dag-from-dax.cpp index a6c253886d..9c62ac8d50 100644 --- a/examples/cpp/dag-from-dax/s4u-dag-from-dax.cpp +++ b/examples/cpp/dag-from-dax/s4u-dag-from-dax.cpp @@ -1,6 +1,6 @@ /* simple test trying to load a DAX file. */ -/* Copyright (c) 2009-2022. The SimGrid Team. All rights reserved. */ +/* Copyright (c) 2009-2023. The SimGrid Team. All rights reserved. */ /* This program is free software; you can redistribute it and/or modify it * under the terms of the license (GNU LGPL) which comes with this package. */ @@ -51,8 +51,8 @@ int main(int argc, char** argv) cursor++; } if (auto* comm = dynamic_cast(a.get())) { - auto pred = dynamic_cast((*comm->get_dependencies().begin()).get()); - auto succ = dynamic_cast(comm->get_successors().front().get()); + const auto* pred = dynamic_cast((*comm->get_dependencies().begin()).get()); + const auto* succ = dynamic_cast(comm->get_successors().front().get()); comm->set_source(pred->get_host())->set_destination(succ->get_host()); } }