]> AND Public Git Repository - simgrid.git/blobdiff - examples/s4u/exec-dependent/s4u-exec-dependent.cpp
Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
when enable_debug is turned off, these tests were failing.
[simgrid.git] / examples / s4u / exec-dependent / s4u-exec-dependent.cpp
index 67b32b986fe25a61971fbbccae22dd03f29f5c46..95ebec62bfab9f21e32d92e004c4692d0d9825ce 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (c) 2007-2019. The SimGrid Team. All rights reserved.          */
+/* Copyright (c) 2007-2020. 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. */
@@ -30,8 +30,8 @@ static void worker()
   child->set_name("child");
 
   // Create the dependencies by declaring 'child' as a successor of first_parent and second_parent
-  first_parent->add_successor(child.get());
-  second_parent->add_successor(child.get());
+  first_parent->add_successor(child);
+  second_parent->add_successor(child);
 
   // Start the activities.
   first_parent->start();