X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/1d9d174e0e416ffd7be66189889a18bf3e21639b..ebc355d0c96552d0bc2aa301d90723490337bca3:/src/instr/instr_paje_trace.cpp diff --git a/src/instr/instr_paje_trace.cpp b/src/instr/instr_paje_trace.cpp index a725958bb9..2a440d15bf 100644 --- a/src/instr/instr_paje_trace.cpp +++ b/src/instr/instr_paje_trace.cpp @@ -1,4 +1,4 @@ -/* Copyright (c) 2010-2018. The SimGrid Team. +/* Copyright (c) 2010-2019. The SimGrid Team. * All rights reserved. */ /* This program is free software; you can redistribute it and/or modify it @@ -15,15 +15,15 @@ XBT_LOG_NEW_DEFAULT_SUBCATEGORY(instr_paje_trace, instr, "tracing event system") extern std::ofstream tracing_file; -std::vector buffer; +static std::vector buffer; -void dump_comment(std::string comment) +void dump_comment(const std::string& comment) { if (not comment.empty()) tracing_file << "# " << comment << std::endl; } -void dump_comment_file(std::string filename) +void dump_comment_file(const std::string& filename) { if (filename.empty()) return;