Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Fix a typo found by clang in MC builds
[simgrid.git] / src / xbt / string.cpp
index 7468c3b..b286aa8 100644 (file)
@@ -1,23 +1,12 @@
-/* Copyright (c) 2015-2021. The SimGrid Team. All rights reserved.          */
+/* Copyright (c) 2015-2023. 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/config.h>
 #include <xbt/string.hpp>
 #include <xbt/sysdep.h>
 
-#include <cstdarg>
-#include <cstdio>
-
-namespace simgrid {
-namespace xbt {
-
-#if SIMGRID_HAVE_MC
-
-char string::NUL = '\0';
-
-#endif
+namespace simgrid::xbt {
 
 std::string string_vprintf(const char *fmt, va_list ap)
 {
@@ -52,5 +41,4 @@ std::string string_printf(const char *fmt, ...)
   return res;
 }
 
-}
-}
+} // namespace simgrid::xbt