]> AND Public Git Repository - simgrid.git/blobdiff - src/instr/jedule/jedule_platform.cpp
Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
The next day sonar commit
[simgrid.git] / src / instr / jedule / jedule_platform.cpp
index 76631fe6e4deca97ff5c287ca2cbf761e5e08bb9..00f78dad2601171f79bab0f454e0cc1331f5aa46 100644 (file)
@@ -1,9 +1,10 @@
-/* Copyright (c) 2010-2020. The SimGrid Team. All rights reserved.          */
+/* Copyright (c) 2010-2021. 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. */
 
 #include "simgrid/jedule/jedule.hpp"
+#include "simgrid/config.h"
 #include "simgrid/host.h"
 #include "simgrid/s4u/NetZone.hpp"
 #include "xbt/asserts.h"
@@ -35,7 +36,7 @@ void Container::add_child(jed_container_t child)
   child->set_parent(this);
 }
 
-void Container::add_resources(std::vector<sg_host_t> hosts)
+void Container::add_resources(const std::vector<sg_host_t>& hosts)
 {
   children_.clear();
   last_id_ = 0;
@@ -143,7 +144,7 @@ void Container::print(FILE* jed_file)
 } // namespace jedule
 } // namespace simgrid
 
-static void add_subsets_to(std::vector<simgrid::jedule::Subset>& subset_list, std::vector<const char*> hostgroup,
+static void add_subsets_to(std::vector<simgrid::jedule::Subset>& subset_list, const std::vector<const char*>& hostgroup,
                            jed_container_t parent)
 {
   // get ids for each host