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

Public GIT Repository
Merge branch 'master' of scm.gforge.inria.fr:/gitroot/simgrid/simgrid
[simgrid.git] / include / simgrid / kernel / resource / Action.hpp
index 141df6402df492f923f4226ea366b98f032f4876..c0c0aec5e42e5d62cb79351abb64c692762ae590 100644 (file)
@@ -13,7 +13,7 @@
 #include <boost/heap/pairing_heap.hpp>
 #include <boost/optional.hpp>
 
-const int NO_MAX_DURATION = -1.0;
+static constexpr int NO_MAX_DURATION = -1.0;
 
 namespace simgrid {
 namespace kernel {
@@ -193,9 +193,9 @@ private:
   boost::optional<heap_type::handle_type> heap_hook_ = boost::none;
 
 public:
-  void heapInsert(heap_type& heap, double key, Action::Type hat);
-  void heapRemove(heap_type& heap);
-  void heapUpdate(heap_type& heap, double key, Action::Type hat);
+  void heapInsert(double key, Action::Type hat);
+  void heapRemove();
+  void heapUpdate(double key, Action::Type hat);
   void clearHeapHandle() { heap_hook_ = boost::none; }
 
   lmm::Variable* get_variable() const { return variable_; }