summaryrefslogtreecommitdiffstats
path: root/Source/cmSystemTools.h
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2019-01-25 12:58:11 (GMT)
committerKitware Robot <kwrobot@kitware.com>2019-01-25 13:00:14 (GMT)
commitc18fc30d1a0c67780fdea4ccd0a84a601ad7e8ef (patch)
treea57fafb6cf3f198ec82e8b8197b2f2051f3193ec /Source/cmSystemTools.h
parent9f84cbd8c323a5a59b666a8bc8199e52a181bb35 (diff)
parent9e5c13738bdc45b00b529b492bad92800890fb9c (diff)
downloadCMake-c18fc30d1a0c67780fdea4ccd0a84a601ad7e8ef.zip
CMake-c18fc30d1a0c67780fdea4ccd0a84a601ad7e8ef.tar.gz
CMake-c18fc30d1a0c67780fdea4ccd0a84a601ad7e8ef.tar.bz2
Merge topic 'renamefile-string'
9e5c13738b cmSystemTools::RenameFile: Accepts std::string args Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !2842
Diffstat (limited to 'Source/cmSystemTools.h')
-rw-r--r--Source/cmSystemTools.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/Source/cmSystemTools.h b/Source/cmSystemTools.h
index 9d872d1..b30e4f7 100644
--- a/Source/cmSystemTools.h
+++ b/Source/cmSystemTools.h
@@ -180,7 +180,8 @@ public:
/** Rename a file or directory within a single disk volume (atomic
if possible). */
- static bool RenameFile(const char* oldname, const char* newname);
+ static bool RenameFile(const std::string& oldname,
+ const std::string& newname);
///! Compute the hash of a file
static std::string ComputeFileHash(const std::string& source,