X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/c64b87ac6ee7d4655690a40cf12bd95f0c1d633f..c3f1d5e72cb2c6d34c2d7788f12ba42e0f592011:/src/kernel/activity/SleepImpl.cpp diff --git a/src/kernel/activity/SleepImpl.cpp b/src/kernel/activity/SleepImpl.cpp index fd85d9d2bc..3072fb9ac3 100644 --- a/src/kernel/activity/SleepImpl.cpp +++ b/src/kernel/activity/SleepImpl.cpp @@ -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()