Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
[sonar] Constify pointer and reference parameters in src/s4u/.
[simgrid.git] / src / kernel / resource / DiskImpl.hpp
index 9ce6640..bc1a65f 100644 (file)
@@ -74,7 +74,7 @@ public:
   void turn_on() override;
   void turn_off() override;
 
-  s4u::Host* get_host() { return host_; }
+  s4u::Host* get_host() const { return host_; }
   void set_host(s4u::Host* host) { host_ = host; }
 
   void destroy(); // Must be called instead of the destructor