Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
more uniformity in kernel
[simgrid.git] / src / kernel / activity / SleepImpl.cpp
index fd85d9d..3072fb9 100644 (file)
@@ -18,22 +18,22 @@ namespace simgrid {
 namespace kernel {
 namespace activity {
 
-SleepImplPtr SleepImpl::set_name(const std::string& name)
+SleepImpl& SleepImpl::set_name(const std::string& name)
 {
   ActivityImpl::set_name(name);
-  return this;
+  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()