Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Declare functions "const" (sonar).
authorArnaud Giersch <arnaud.giersch@univ-fcomte.fr>
Wed, 7 Jun 2023 09:37:05 +0000 (11:37 +0200)
committerArnaud Giersch <arnaud.giersch@univ-fcomte.fr>
Wed, 7 Jun 2023 09:37:05 +0000 (11:37 +0200)
include/simgrid/plugins/task.hpp

index 62eb12a..8143333 100644 (file)
@@ -134,9 +134,9 @@ public:
   IoTaskPtr set_disk(s4u::Disk* disk);
   s4u::Disk* get_disk() const { return disk_; }
   IoTaskPtr set_bytes(double bytes);
-  double get_bytes() { return get_amount(); }
+  double get_bytes() const { return get_amount(); }
   IoTaskPtr set_op_type(s4u::Io::OpType type);
-  s4u::Io::OpType get_op_type() { return type_; }
+  s4u::Io::OpType get_op_type() const { return type_; }
 };
 } // namespace simgrid::plugins
 #endif