X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/22b191961881b619747f7bdc637902556030ed16..f09d7e3fcf1e6f76b8391b451d5f43b175fd42dc:/src/mc/Session.cpp diff --git a/src/mc/Session.cpp b/src/mc/Session.cpp index 1d7b32ebac..3d62b73082 100644 --- a/src/mc/Session.cpp +++ b/src/mc/Session.cpp @@ -1,5 +1,4 @@ -/* Copyright (c) 2015-2018. The SimGrid Team. - * All rights reserved. */ +/* Copyright (c) 2015-2019. 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. */ @@ -92,8 +91,7 @@ Session::Session(pid_t pid, int socket) #else process->privatized(false); #endif - modelChecker_ = std::unique_ptr( - new simgrid::mc::ModelChecker(std::move(process))); + modelChecker_.reset(new simgrid::mc::ModelChecker(std::move(process))); xbt_assert(mc_model_checker == nullptr); mc_model_checker = modelChecker_.get(); mc_model_checker->start(); @@ -137,7 +135,7 @@ void Session::logState() } // static -Session* Session::fork(std::function code) +Session* Session::fork(const std::function& code) { // Create a AF_LOCAL socketpair used for exchanging messages // between the model-checker process (ourselves) and the model-checked