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
start initializing routing fields in the constructors, not with a shotgun
[simgrid.git]
/
src
/
surf
/
surf_routing_generic.cpp
diff --git
a/src/surf/surf_routing_generic.cpp
b/src/surf/surf_routing_generic.cpp
index
c455405
..
262042a
100644
(file)
--- a/
src/surf/surf_routing_generic.cpp
+++ b/
src/surf/surf_routing_generic.cpp
@@
-47,11
+47,14
@@
void AsGeneric::getRouteAndLatency(NetCard */*src*/, NetCard */*dst*/, sg_platf_
THROW_IMPOSSIBLE;
}
THROW_IMPOSSIBLE;
}
-AsGeneric::AsGeneric() {
+AsGeneric::AsGeneric(const char*name)
+ : AsNone(name)
+{
p_bypassRoutes = xbt_dict_new_homogeneous((void (*)(void *)) routing_route_free);
}
p_bypassRoutes = xbt_dict_new_homogeneous((void (*)(void *)) routing_route_free);
}
-AsGeneric::~AsGeneric() {
+AsGeneric::~AsGeneric()
+{
xbt_dict_free(&p_bypassRoutes);
}
xbt_dict_free(&p_bypassRoutes);
}