X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/8324b639b905273fb1d3bb38f9c7d64fdeec3d5d..51a8ae849ce9b0d4de515c33e01110dcc07a44c8:/src/kernel/activity/MailboxImpl.cpp diff --git a/src/kernel/activity/MailboxImpl.cpp b/src/kernel/activity/MailboxImpl.cpp index c84746a59b..f812f45522 100644 --- a/src/kernel/activity/MailboxImpl.cpp +++ b/src/kernel/activity/MailboxImpl.cpp @@ -92,12 +92,10 @@ CommImplPtr MailboxImpl::iprobe(int type, bool (*match_fun)(void*, void*, CommIm CommImplPtr this_comm; CommImpl::Type smx_type; if (type == 1) { - this_comm = CommImplPtr(new CommImpl()); - this_comm->set_type(CommImpl::Type::SEND); + this_comm = CommImplPtr(new CommImpl(CommImpl::Type::SEND)); smx_type = CommImpl::Type::RECEIVE; } else { - this_comm = CommImplPtr(new CommImpl()); - this_comm->set_type(CommImpl::Type::RECEIVE); + this_comm = CommImplPtr(new CommImpl(CommImpl::Type::RECEIVE)); smx_type = CommImpl::Type::SEND; } CommImplPtr other_comm = nullptr;