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
Pass std::string parameters by reference too.
[simgrid.git]
/
include
/
simgrid
/
kernel
/
routing
/
NetPoint.hpp
diff --git
a/include/simgrid/kernel/routing/NetPoint.hpp
b/include/simgrid/kernel/routing/NetPoint.hpp
index
7a49f91
..
7984766
100644
(file)
--- a/
include/simgrid/kernel/routing/NetPoint.hpp
+++ b/
include/simgrid/kernel/routing/NetPoint.hpp
@@
-26,7
+26,7
@@
class NetPoint : public simgrid::xbt::Extendable<NetPoint> {
public:
enum class Type { Host, Router, NetZone };
public:
enum class Type { Host, Router, NetZone };
- NetPoint(
std::string
name, NetPoint::Type component_type, NetZoneImpl* netzone_p);
+ NetPoint(
const std::string&
name, NetPoint::Type component_type, NetZoneImpl* netzone_p);
~NetPoint() = default;
// Our rank in the vertices_ array of the netzone that contains us.
~NetPoint() = default;
// Our rank in the vertices_ array of the netzone that contains us.