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/CPack/IFW | |
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/CPack/IFW')
-rw-r--r-- | Source/CPack/IFW/cmCPackIFWInstaller.cxx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Source/CPack/IFW/cmCPackIFWInstaller.cxx b/Source/CPack/IFW/cmCPackIFWInstaller.cxx index 8f492af..f12a452 100644 --- a/Source/CPack/IFW/cmCPackIFWInstaller.cxx +++ b/Source/CPack/IFW/cmCPackIFWInstaller.cxx @@ -288,8 +288,7 @@ protected: content = cmSystemTools::TrimWhitespace(content); std::string source = this->basePath + "/" + content; std::string destination = this->path + "/" + content; - if (!cmSystemTools::CopyFileIfDifferent(source.data(), - destination.data())) { + if (!cmSystemTools::CopyFileIfDifferent(source, destination)) { this->hasErrors = true; } } |