X-Git-Url: http://bilbo.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/97e076ca0d8906b59aa13944c08603e6ae634911..ab5814bd4ea6117ecf9ac2df328333e89eb45f5f:/src/xbt/memory_map.cpp diff --git a/src/xbt/memory_map.cpp b/src/xbt/memory_map.cpp index b54dce63ed..2d54b6aee8 100644 --- a/src/xbt/memory_map.cpp +++ b/src/xbt/memory_map.cpp @@ -1,4 +1,4 @@ -/* Copyright (c) 2008-2022. The SimGrid Team. All rights reserved. */ +/* Copyright (c) 2008-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. */ @@ -65,8 +65,7 @@ } else \ ((void)0) -namespace simgrid { -namespace xbt { +namespace simgrid::xbt { /** * \todo This function contains many cases that do not allow for a @@ -203,7 +202,7 @@ std::vector get_memory_map(pid_t pid) #elif defined __linux__ /* Open the actual process's proc maps file and create the memory_map_t */ /* to be returned. */ - std::string path = std::string("/proc/") + std::to_string(pid) + "/maps"; + std::string path = "/proc/" + std::to_string(pid) + "/maps"; std::ifstream fp; fp.rdbuf()->pubsetbuf(nullptr, 0); fp.open(path); @@ -419,5 +418,4 @@ std::vector get_memory_map(pid_t pid) return ret; } -} -} +} // namespace simgrid::xbt