diff options
author | Vitaly Stakhovsky <vvs31415@gitlab.org> | 2019-01-23 01:37:59 (GMT) |
---|---|---|
committer | Vitaly Stakhovsky <vvs31415@gitlab.org> | 2019-01-23 01:37:59 (GMT) |
commit | 9e5c13738bdc45b00b529b492bad92800890fb9c (patch) | |
tree | ee07703b2cf6a7178c7f76f934f828afe2b3764e /Source/cmcmd.cxx | |
parent | fa5bf870df1ce5d9cbcf61be736beb0b1e87b85b (diff) | |
download | CMake-9e5c13738bdc45b00b529b492bad92800890fb9c.zip CMake-9e5c13738bdc45b00b529b492bad92800890fb9c.tar.gz CMake-9e5c13738bdc45b00b529b492bad92800890fb9c.tar.bz2 |
cmSystemTools::RenameFile: Accepts std::string args
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 26f7509..6a514f5 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"; |