Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Pointer-to-const parameter.
authorArnaud Giersch <arnaud.giersch@univ-fcomte.fr>
Wed, 7 Apr 2021 12:48:21 +0000 (14:48 +0200)
committerArnaud Giersch <arnaud.giersch@univ-fcomte.fr>
Wed, 7 Apr 2021 13:44:30 +0000 (15:44 +0200)
src/surf/disk_s19.cpp
src/surf/disk_s19.hpp

index ae62d3f..3c98321 100644 (file)
@@ -72,7 +72,7 @@ DiskAction* DiskS19::write(sg_size_t size)
  * Action *
  **********/
 
-DiskS19Action::DiskS19Action(Model* model, double cost, bool failed, DiskImpl* disk, s4u::Io::OpType type)
+DiskS19Action::DiskS19Action(Model* model, double cost, bool failed, const DiskImpl* disk, s4u::Io::OpType type)
     : DiskAction(model, cost, failed, model->get_maxmin_system()->variable_new(this, 1.0, -1.0, 3))
 {
   XBT_IN("(%s,%g", disk->get_cname(), cost);
index 845abcd..f80c35b 100644 (file)
@@ -51,7 +51,7 @@ public:
 
 class DiskS19Action : public DiskAction {
 public:
-  DiskS19Action(Model* model, double cost, bool failed, DiskImpl* disk, s4u::Io::OpType type);
+  DiskS19Action(Model* model, double cost, bool failed, const DiskImpl* disk, s4u::Io::OpType type);
   void update_remains_lazy(double now) override;
 };