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
Have create_jbod() return a JbodPtr instead of Jbod* to avoid memleaks
[simgrid.git]
/
src
/
mc
/
api
/
ActorState.hpp
diff --git
a/src/mc/api/ActorState.hpp
b/src/mc/api/ActorState.hpp
index 2e8e136e8c8853473b9b19c82471ef7e993c53ba..ed404546468a18b2cc16ff89ee4e8e853d8d3938 100644
(file)
--- a/
src/mc/api/ActorState.hpp
+++ b/
src/mc/api/ActorState.hpp
@@
-164,7
+164,8
@@
public:
const std::vector<std::shared_ptr<Transition>>& get_enabled_transitions() const
{
const std::vector<std::shared_ptr<Transition>>& get_enabled_transitions() const
{
- return this->pending_transitions_;
+ static const auto no_enabled_transitions = std::vector<std::shared_ptr<Transition>>();
+ return this->is_enabled() ? this->pending_transitions_ : no_enabled_transitions;
};
};
};
};