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
Use const reference for std::string parameter.
[simgrid.git]
/
examples
/
s4u
/
network-ns3-wifi
/
s4u-network-ns3-wifi.cpp
diff --git
a/examples/s4u/network-ns3-wifi/s4u-network-ns3-wifi.cpp
b/examples/s4u/network-ns3-wifi/s4u-network-ns3-wifi.cpp
index
e1f1580
..
bd47083
100644
(file)
--- a/
examples/s4u/network-ns3-wifi/s4u-network-ns3-wifi.cpp
+++ b/
examples/s4u/network-ns3-wifi/s4u-network-ns3-wifi.cpp
@@
-15,7
+15,7
@@
public:
std::string sender;
int size;
std::string sender;
int size;
- Message(
std::string
sender_, int size_) : sender(sender_), size(size_) {}
+ Message(
const std::string&
sender_, int size_) : sender(sender_), size(size_) {}
};
static void sender(std::string mailbox, double msg_size, unsigned sleep_time)
};
static void sender(std::string mailbox, double msg_size, unsigned sleep_time)