From 2930c51f66caea16d89877478c071929bd151c68 Mon Sep 17 00:00:00 2001 From: Martin Quinson Date: Thu, 2 Feb 2017 02:39:06 +0100 Subject: [PATCH 1/1] please sonar by writing lighter C++ code --- include/simgrid/s4u/engine.hpp | 4 ++-- src/s4u/s4u_engine.cpp | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) 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. */ -- 2.20.1