X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/de76e8e769a510745e1a51131d8ed6cc36db7c2c..49b1303645f1ec4a07a561ce1e747a094cfb86d0:/src/xbt/xbt_replay.cpp diff --git a/src/xbt/xbt_replay.cpp b/src/xbt/xbt_replay.cpp index c05deb6ee5..b9b6612af1 100644 --- a/src/xbt/xbt_replay.cpp +++ b/src/xbt/xbt_replay.cpp @@ -23,7 +23,7 @@ static void read_and_trim_line(std::ifstream* fs, std::string* line) do { std::getline(*fs, *line); boost::trim(*line); - } while (!fs->eof() && (line->length() == 0 || line->front() == '#')); + } while (not fs->eof() && (line->length() == 0 || line->front() == '#')); XBT_DEBUG("got from trace: %s", line->c_str()); } @@ -34,9 +34,9 @@ class ReplayReader { public: explicit ReplayReader(const char* filename) { - XBT_VERB("Prepare to replay file '%s'", filename); - fs = new std::ifstream(filename, std::ifstream::in); - xbt_assert(fs->is_open(), "Cannot read replay file '%s'", filename); + XBT_VERB("Prepare to replay file '%s'", filename); + fs = new std::ifstream(filename, std::ifstream::in); + xbt_assert(fs->is_open(), "Cannot read replay file '%s'", filename); } ~ReplayReader() { @@ -50,7 +50,7 @@ bool ReplayReader::get(ReplayAction* action) read_and_trim_line(fs, &line); boost::split(*action, line, boost::is_any_of(" \t"), boost::token_compress_on); - return !fs->eof(); + return not fs->eof(); } static ReplayAction* get_action(char* name)