Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
clang again
[simgrid.git] / src / mc / mc_replay.h
index ad7a98d..273c92c 100644 (file)
@@ -1,5 +1,4 @@
-/* Copyright (c) 2008-2015. The SimGrid Team.
- * All rights reserved.                                                     */
+/* Copyright (c) 2008-2017. 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. */
@@ -7,7 +6,8 @@
 #ifndef SIMGRID_MC_REPLAY_H
 #define SIMGRID_MC_REPLAY_H
 
-#include <xbt/base.h>
+#include "xbt/base.h"
+#include <string>
 
 SG_BEGIN_DECL()
 
@@ -15,11 +15,11 @@ SG_BEGIN_DECL()
  *
  *  This is using the format generated by traceToString().
  */
-XBT_PUBLIC_DATA(char*) MC_record_path;
+XBT_PUBLIC_DATA(std::string) MC_record_path;
 
 /** Whether the replay mode is enabled */
 static inline int MC_record_replay_is_active() {
-  return MC_record_path != 0;
+  return not MC_record_path.empty();
 }
 
 SG_END_DECL()