CommPtr Mailbox::put_init()
{
- CommPtr res = CommPtr(new Comm());
+ CommPtr res(new Comm());
res->sender_ = kernel::actor::ActorImpl::self();
res->mailbox_ = this;
return res;
CommPtr Mailbox::get_init()
{
- CommPtr res = CommPtr(new Comm());
+ CommPtr res(new Comm());
res->receiver_ = kernel::actor::ActorImpl::self();
res->mailbox_ = this;
return res;