X-Git-Url: http://bilbo.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/a882344bc908a258a991701e226556ec23fd7cd6..5f2e051a9bb2b088d3b3543982d3a244b7b7b1c4:/src/mc/mc_record.cpp diff --git a/src/mc/mc_record.cpp b/src/mc/mc_record.cpp index 8330582fe5..72483fe420 100644 --- a/src/mc/mc_record.cpp +++ b/src/mc/mc_record.cpp @@ -18,8 +18,7 @@ XBT_LOG_NEW_DEFAULT_SUBCATEGORY(mc_record, mc, "Logging specific to MC record/replay facility"); -namespace simgrid { -namespace mc { +namespace simgrid::mc { void RecordTrace::replay() const { @@ -61,9 +60,8 @@ simgrid::mc::RecordTrace::RecordTrace(const char* data) while (*current) { long aid; int times_considered; - int count = sscanf(current, "%ld/%d", &aid, ×_considered); - if(count != 2 && count != 1) + if (int count = sscanf(current, "%ld/%d", &aid, ×_considered); count != 2 && count != 1) throw std::invalid_argument("Could not parse record path"); push_back(new simgrid::mc::Transition(simgrid::mc::Transition::Type::UNKNOWN, aid, times_considered)); @@ -93,5 +91,4 @@ std::string simgrid::mc::RecordTrace::to_string() const #endif -} -} +} // namespace simgrid::mc