X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/656d1d84782545d13a71b9dbf956ef2c69ec3af6..56651d7c6d0cc1c2108ca0d8de7e34462acd0514:/include/xbt/file.hpp diff --git a/include/xbt/file.hpp b/include/xbt/file.hpp index 4ef6c04df3..e98178f7f8 100644 --- a/include/xbt/file.hpp +++ b/include/xbt/file.hpp @@ -1,4 +1,4 @@ -/* Copyright (c) 2017-2019. The SimGrid Team. All rights reserved. */ +/* Copyright (c) 2017-2020. 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. */ @@ -19,7 +19,7 @@ public: /** Build a path from the provided parameter */ explicit Path(const char* path): path_(path) {} /** Build a path from the provided parameter */ - explicit Path(std::string path): path_(std::move(path)) {} + explicit Path(const std::string& path) : path_(path) {} /** @brief Returns the full path name */ const std::string& get_name() const { return path_; }