X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/630aaa4b2c8d0fa6743180de3bde5f69ea7606dd..c527cde5e1ee1bfe22dd33b3bbb77aaae8bcdcb1:/src/surf/virtual_machine.cpp diff --git a/src/surf/virtual_machine.cpp b/src/surf/virtual_machine.cpp index aa27cf84cc..76d945a257 100644 --- a/src/surf/virtual_machine.cpp +++ b/src/surf/virtual_machine.cpp @@ -105,14 +105,11 @@ double VMModel::nextOccuringEvent(double now) ************/ VirtualMachine::VirtualMachine(HostModel* model, const char* name, simgrid::s4u::Host* host_PM) - : HostImpl(model, name, nullptr /*storage*/), hostPM_(host_PM) + : HostImpl(new simgrid::s4u::Host(name), nullptr /*storage*/), hostPM_(host_PM) { /* Register this VM to the list of all VMs */ allVms_.push_back(this); - piface_ = new simgrid::s4u::Host(name); - piface_->pimpl_ = this; - /* Currently, a VM uses the network resource of its physical host. In * host_lib, this network resource object is referred from two different keys. * When deregistering the reference that points the network resource object