-/* Copyright (c) 2007-2019. The SimGrid Team. All rights reserved. */
+/* Copyright (c) 2007-2021. 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. */
// 'bob_write' is a successor of 'bob_compute'
// 'carl_read' is a successor of 'bob_write'
// 'carl_compute' is a successor of 'carl_read'
- bob_compute->add_successor(bob_write.get());
- bob_write->add_successor(carl_read.get());
- carl_read->add_successor(carl_compute.get());
+ bob_compute->add_successor(bob_write);
+ bob_write->add_successor(carl_read);
+ carl_read->add_successor(carl_compute);
// Start the activities.
bob_compute->start();