Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
please sonar by writing lighter C++ code
authorMartin Quinson <martin.quinson@loria.fr>
Thu, 2 Feb 2017 01:39:06 +0000 (02:39 +0100)
committerMartin Quinson <martin.quinson@loria.fr>
Thu, 2 Feb 2017 01:39:06 +0000 (02:39 +0100)
include/simgrid/s4u/engine.hpp
src/s4u/s4u_engine.cpp

index c8558b8..71d5df2 100644 (file)
@@ -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<void(void)> onPlatformCreated;
+extern XBT_PRIVATE xbt::signal<void()> onPlatformCreated;
 
 /** Callback called when the main simulation loop ends, just before MSG_run (or similar) ends */
-extern XBT_PRIVATE xbt::signal<void(void)> onSimulationEnd;
+extern XBT_PRIVATE xbt::signal<void()> onSimulationEnd;
 }} // namespace simgrid::s4u
 
 #endif /* SIMGRID_S4U_ENGINE_HPP */
index 967f077..0906e7d 100644 (file)
@@ -23,8 +23,8 @@ XBT_LOG_NEW_CATEGORY(s4u,"Log channels of the S4U (Simgrid for you) interface");
 
 namespace simgrid {
 namespace s4u {
-xbt::signal<void(void)> onPlatformCreated;
-xbt::signal<void(void)> onSimulationEnd;
+xbt::signal<void()> onPlatformCreated;
+xbt::signal<void()> onSimulationEnd;
 
 Engine *Engine::instance_ = nullptr; /* That singleton is awful, but I don't see no other solution right now. */