Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Merge branch 'master' of https://framagit.org/simgrid/simgrid
[simgrid.git] / src / kernel / activity / SleepImpl.cpp
index fd85d9d..e8b04dd 100644 (file)
@@ -18,22 +18,16 @@ namespace simgrid {
 namespace kernel {
 namespace activity {
 
-SleepImplPtr SleepImpl::set_name(const std::string& name)
-{
-  ActivityImpl::set_name(name);
-  return this;
-}
-
-SleepImplPtr SleepImpl::set_host(s4u::Host* host)
+SleepImpl& SleepImpl::set_host(s4u::Host* host)
 {
   host_ = host;
-  return this;
+  return *this;
 }
 
-SleepImplPtr SleepImpl::set_duration(double duration)
+SleepImpl& SleepImpl::set_duration(double duration)
 {
   duration_ = duration;
-  return this;
+  return *this;
 }
 
 SleepImpl* SleepImpl::start()