From: Martin Quinson Date: Thu, 2 Feb 2017 01:39:06 +0000 (+0100) Subject: please sonar by writing lighter C++ code X-Git-Tag: v3_15~487 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/2930c51f66caea16d89877478c071929bd151c68?hp=a4ab179f11ae2afec1467c4ca9256fc5ba6fa85b please sonar by writing lighter C++ code --- diff --git a/include/simgrid/s4u/engine.hpp b/include/simgrid/s4u/engine.hpp index c8558b8abb..71d5df2a51 100644 --- a/include/simgrid/s4u/engine.hpp +++ b/include/simgrid/s4u/engine.hpp @@ -108,10 +108,10 @@ private: /** Callback called when the platform is created (ie, the xml file parsed), * right before the actual simulation starts. */ -extern XBT_PRIVATE xbt::signal onPlatformCreated; +extern XBT_PRIVATE xbt::signal onPlatformCreated; /** Callback called when the main simulation loop ends, just before MSG_run (or similar) ends */ -extern XBT_PRIVATE xbt::signal onSimulationEnd; +extern XBT_PRIVATE xbt::signal onSimulationEnd; }} // namespace simgrid::s4u #endif /* SIMGRID_S4U_ENGINE_HPP */ diff --git a/src/s4u/s4u_engine.cpp b/src/s4u/s4u_engine.cpp index 967f077db7..0906e7d045 100644 --- a/src/s4u/s4u_engine.cpp +++ b/src/s4u/s4u_engine.cpp @@ -23,8 +23,8 @@ XBT_LOG_NEW_CATEGORY(s4u,"Log channels of the S4U (Simgrid for you) interface"); namespace simgrid { namespace s4u { -xbt::signal onPlatformCreated; -xbt::signal onSimulationEnd; +xbt::signal onPlatformCreated; +xbt::signal onSimulationEnd; Engine *Engine::instance_ = nullptr; /* That singleton is awful, but I don't see no other solution right now. */