A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
simgrid.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
[sonar] Constify pointer and reference parameters in src/s4u/.
[simgrid.git]
/
src
/
kernel
/
resource
/
DiskImpl.hpp
diff --git
a/src/kernel/resource/DiskImpl.hpp
b/src/kernel/resource/DiskImpl.hpp
index
9ce6640
..
bc1a65f
100644
(file)
--- a/
src/kernel/resource/DiskImpl.hpp
+++ b/
src/kernel/resource/DiskImpl.hpp
@@
-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