]> AND Public Git Repository - simgrid.git/blobdiff - src/mc/transition/TransitionRandom.cpp
Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Reduce depth of nested statements
[simgrid.git] / src / mc / transition / TransitionRandom.cpp
index fb87d0d1e5e28d6df38a52807d23fe9c36e7fd38..aa01c70536377b99eadaba5ee9bd0e907f15bc15 100644 (file)
@@ -11,8 +11,7 @@
 
 XBT_LOG_NEW_DEFAULT_SUBCATEGORY(mc_trans_rand, mc_transition, "Logging specific to MC Random transitions");
 
-namespace simgrid {
-namespace mc {
+namespace simgrid::mc {
 std::string RandomTransition::to_string(bool verbose) const
 {
   return xbt::string_printf("Random([%d;%d] ~> %d)", min_, max_, times_considered_);
@@ -24,10 +23,4 @@ RandomTransition::RandomTransition(aid_t issuer, int times_considered, std::stri
   xbt_assert(stream >> min_ >> max_);
 }
 
-std::string RandomTransition::dot_label() const
-{
-  return Transition::dot_label() + to_c_str(type_);
-}
-
-} // namespace mc
-} // namespace simgrid
+} // namespace simgrid::mc