Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
tend to the google coding standards in all S4U API
[simgrid.git] / src / kernel / routing / NetPoint.cpp
index 054b8b4..3670c70 100644 (file)
@@ -21,7 +21,7 @@ NetPoint::NetPoint(std::string name, NetPoint::Type componentType, NetZoneImpl*
 {
   if (netzone_p != nullptr)
     id_ = netzone_p->addComponent(this);
-  simgrid::s4u::Engine::instance()->netpointRegister(this);
+  simgrid::s4u::Engine::getInstance()->netpointRegister(this);
   simgrid::kernel::routing::NetPoint::onCreation(this);
 }
 }
@@ -34,5 +34,5 @@ NetPoint::NetPoint(std::string name, NetPoint::Type componentType, NetZoneImpl*
  */
 simgrid::kernel::routing::NetPoint* sg_netpoint_by_name_or_null(const char* name)
 {
-  return simgrid::s4u::Engine::instance()->netpointByNameOrNull(name);
+  return simgrid::s4u::Engine::getInstance()->getNetpointByNameOrNull(name);
 }