summaryrefslogtreecommitdiffstats
path: root/Source/cmFileCommand.cxx
diff options
context:
space:
mode:
authorVitaly Stakhovsky <vvs31415@gitlab.org>2019-01-29 15:34:18 (GMT)
committerVitaly Stakhovsky <vvs31415@gitlab.org>2019-01-29 15:34:18 (GMT)
commitc31b6e616d5c2d697696540ca2e8faf14160d2b0 (patch)
treebf4f82b41e5fd8a2d5f5fd76e80eb6f8e24e0e1b /Source/cmFileCommand.cxx
parent9620cb935a49e7b4955f5b1d0ffa2e93b4327591 (diff)
downloadCMake-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/cmFileCommand.cxx')
-rw-r--r--Source/cmFileCommand.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/Source/cmFileCommand.cxx b/Source/cmFileCommand.cxx
index afb0b2a..76c5b9a 100644
--- a/Source/cmFileCommand.cxx
+++ b/Source/cmFileCommand.cxx
@@ -3759,8 +3759,7 @@ bool cmFileCommand::HandleCreateLinkCommand(
// Check if copy-on-error is enabled in the arguments.
if (!completed && copyOnErrorArg.IsEnabled()) {
- completed =
- cmSystemTools::cmCopyFile(fileName.c_str(), newFileName.c_str());
+ completed = cmSystemTools::cmCopyFile(fileName, newFileName);
if (!completed) {
result = "Copy failed: " + cmSystemTools::GetLastSystemError();
}