Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
please codacy: use long form of negation in C++
[simgrid.git] / src / mc / mc_xbt.cpp
index b7e6f5a..86c0144 100644 (file)
@@ -6,9 +6,9 @@
 
 #include <cstddef>
 
-#include "src/mc/RemotePtr.hpp"
 #include "src/mc/AddressSpace.hpp"
 #include "src/mc/mc_xbt.hpp"
+#include "src/mc/remote/RemotePtr.hpp"
 
 #include <xbt/dynar.h>
 #include <xbt/sysdep.h>
@@ -30,7 +30,7 @@ void read_element(AddressSpace const& as,
 
 std::size_t read_length(AddressSpace const& as, RemotePtr<s_xbt_dynar_t> addr)
 {
-  if (!addr)
+  if (not addr)
     return 0;
   unsigned long res;
   as.read_bytes(&res, sizeof(res),