Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
[sonar] bunch of const
[simgrid.git] / include / simgrid / s4u / Comm.hpp
index 6806ed9..bee49b3 100644 (file)
@@ -108,9 +108,9 @@ public:
 
   /** Set the source and destination of communications that bypass the mailbox mechanism */
   CommPtr set_source(Host* from);
 
   /** Set the source and destination of communications that bypass the mailbox mechanism */
   CommPtr set_source(Host* from);
-  Host* get_source() { return from_; }
+  Host* get_source() const { return from_; }
   CommPtr set_destination(Host* to);
   CommPtr set_destination(Host* to);
-  Host* get_destination() { return to_; }
+  Host* get_destination() const { return to_; }
 
   /** Sets the maximal communication rate (in byte/sec). Must be done before start */
   CommPtr set_rate(double rate);
 
   /** Sets the maximal communication rate (in byte/sec). Must be done before start */
   CommPtr set_rate(double rate);