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] Declare functions "const" in examples/ and teshsuite/.
[simgrid.git]
/
examples
/
s4u
/
io-file-system
/
s4u-io-file-system.cpp
diff --git
a/examples/s4u/io-file-system/s4u-io-file-system.cpp
b/examples/s4u/io-file-system/s4u-io-file-system.cpp
index
46f1e02
..
bdc6629
100644
(file)
--- a/
examples/s4u/io-file-system/s4u-io-file-system.cpp
+++ b/
examples/s4u/io-file-system/s4u-io-file-system.cpp
@@
-13,7
+13,7
@@
XBT_LOG_NEW_DEFAULT_CATEGORY(s4u_test, "a sample log category");
class MyHost {
public:
class MyHost {
public:
- void show_info(std::vector<simgrid::s4u::Disk*> const& disks)
+ void show_info(std::vector<simgrid::s4u::Disk*> const& disks)
const
{
XBT_INFO("Storage info on %s:", simgrid::s4u::Host::current()->get_cname());
{
XBT_INFO("Storage info on %s:", simgrid::s4u::Host::current()->get_cname());
@@
-24,7
+24,7
@@
public:
}
}
}
}
- void operator()()
+ void operator()()
const
{
std::vector<simgrid::s4u::Disk*> const& disks = simgrid::s4u::Host::current()->get_disks();
{
std::vector<simgrid::s4u::Disk*> const& disks = simgrid::s4u::Host::current()->get_disks();