diff options
author | Brad King <brad.king@kitware.com> | 2019-01-25 12:58:11 (GMT) |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2019-01-25 13:00:14 (GMT) |
commit | c18fc30d1a0c67780fdea4ccd0a84a601ad7e8ef (patch) | |
tree | a57fafb6cf3f198ec82e8b8197b2f2051f3193ec /Source/cmcmd.cxx | |
parent | 9f84cbd8c323a5a59b666a8bc8199e52a181bb35 (diff) | |
parent | 9e5c13738bdc45b00b529b492bad92800890fb9c (diff) | |
download | CMake-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/cmcmd.cxx')
-rw-r--r-- | Source/cmcmd.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmcmd.cxx b/Source/cmcmd.cxx index f5769f6..ce3691d 100644 --- a/Source/cmcmd.cxx +++ b/Source/cmcmd.cxx @@ -530,7 +530,7 @@ int cmcmd::ExecuteCMakeCommand(std::vector<std::string>& args) // Rename a file or directory if (args[1] == "rename" && args.size() == 4) { - if (!cmSystemTools::RenameFile(args[2].c_str(), args[3].c_str())) { + if (!cmSystemTools::RenameFile(args[2], args[3])) { std::string e = cmSystemTools::GetLastSystemError(); std::cerr << "Error renaming from \"" << args[2] << "\" to \"" << args[3] << "\": " << e << "\n"; |