]> AND Public Git Repository - simgrid.git/blobdiff - src/kernel/resource/Action.cpp
Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Fix double-free.
[simgrid.git] / src / kernel / resource / Action.cpp
index 006295381ea1943850a89b43767aeae2ad4626f8..6920fd7d8623780cda04f5ac6e014d980c225b85 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (c) 2004-2021. The SimGrid Team. All rights reserved.          */
+/* Copyright (c) 2004-2022. The SimGrid Team. All rights reserved.          */
 
 /* This program is free software; you can redistribute it and/or modify it
  * under the terms of the license (GNU LGPL) which comes with this package. */
@@ -12,9 +12,7 @@
 XBT_LOG_NEW_CATEGORY(kernel, "SimGrid internals");
 XBT_LOG_NEW_DEFAULT_SUBCATEGORY(ker_resource, kernel, "Resources, modeling the platform performance");
 
-namespace simgrid {
-namespace kernel {
-namespace resource {
+namespace simgrid::kernel::resource {
 
 Action::Action(Model* model, double cost, bool failed) : Action(model, cost, failed, nullptr) {}
 
@@ -247,6 +245,4 @@ Action* ActionHeap::pop()
   return action;
 }
 
-} // namespace resource
-} // namespace kernel
-} // namespace simgrid
+} // namespace simgrid::kernel::resource