Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Make model name constant
[simgrid.git] / src / plugins / vm / VirtualMachineImpl.hpp
index b2597a5..b1eda38 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (c) 2004-2020. The SimGrid Team. All rights reserved.          */
+/* Copyright (c) 2004-2021. The SimGrid Team. All rights reserved.          */
 
 /* This program is free software; you can redistribute it and/or modify it
  * under the terms of the license (GNU LGPL) which comes with this package. */
@@ -90,7 +90,7 @@ private:
  */
 class XBT_PRIVATE VMModel : public surf::HostModel {
 public:
-  VMModel();
+  explicit VMModel(std::string name);
 
   double next_occurring_event(double now) override;
   void update_actions_state(double /*now*/, double /*delta*/) override{};
@@ -103,6 +103,4 @@ public:
 }
 }
 
-XBT_PUBLIC_DATA simgrid::vm::VMModel* surf_vm_model;
-
 #endif /* VM_INTERFACE_HPP_ */