diff options
author | Vitaly Stakhovsky <vvs31415@gitlab.org> | 2019-01-29 15:34:18 (GMT) |
---|---|---|
committer | Vitaly Stakhovsky <vvs31415@gitlab.org> | 2019-01-29 15:34:18 (GMT) |
commit | c31b6e616d5c2d697696540ca2e8faf14160d2b0 (patch) | |
tree | bf4f82b41e5fd8a2d5f5fd76e80eb6f8e24e0e1b /Source/cmake.cxx | |
parent | 9620cb935a49e7b4955f5b1d0ffa2e93b4327591 (diff) | |
download | CMake-c31b6e616d5c2d697696540ca2e8faf14160d2b0.zip CMake-c31b6e616d5c2d697696540ca2e8faf14160d2b0.tar.gz CMake-c31b6e616d5c2d697696540ca2e8faf14160d2b0.tar.bz2 |
cmSystemTools: copy file member functions accept std::string params
Cleaned up `c_str()`s.
`cmSystemTools::CopyFileIfDifferent()` removed as redundant.
Diffstat (limited to 'Source/cmake.cxx')
-rw-r--r-- | Source/cmake.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmake.cxx b/Source/cmake.cxx index 70316f1..b03ffdb 100644 --- a/Source/cmake.cxx +++ b/Source/cmake.cxx @@ -2358,7 +2358,7 @@ int cmake::GetSystemInformation(std::vector<std::string>& args) outFile += "/CMakeLists.txt"; // Copy file - if (!cmSystemTools::cmCopyFile(inFile.c_str(), outFile.c_str())) { + if (!cmSystemTools::cmCopyFile(inFile, outFile)) { std::cerr << "Error copying file \"" << inFile << "\" to \"" << outFile << "\".\n"; return 1; |