Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Rename variables to avoid shadowing outer declarations.
[simgrid.git] / include / xbt / automaton.hpp
index aea5fc6..49d55f5 100644 (file)
@@ -23,11 +23,7 @@ template <class F> xbt_automaton_propositional_symbol_t add_proposition(const_xb
 {
   auto* callback = new F(std::move(f));
   return xbt_automaton_propositional_symbol_new_callback(
-    a, id,
-    [](void* callback) -> int { return (*(F*)callback)(); },
-    callback,
-    [](void* callback) -> void { delete (F*)callback; }
-  );
+      a, id, [](void* cb) -> int { return (*(F*)cb)(); }, callback, [](void* cb) -> void { delete (F*)cb; });
 }
 
 }