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/cmSystemTools.h | |
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/cmSystemTools.h')
-rw-r--r-- | Source/cmSystemTools.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/cmSystemTools.h b/Source/cmSystemTools.h index b1d5751..98ada60 100644 --- a/Source/cmSystemTools.h +++ b/Source/cmSystemTools.h @@ -179,8 +179,8 @@ public: std::vector<std::string>& files, int type = 0); ///! Copy a file. - static bool cmCopyFile(const char* source, const char* destination); - static bool CopyFileIfDifferent(const char* source, const char* destination); + static bool cmCopyFile(const std::string& source, + const std::string& destination); /** Rename a file or directory within a single disk volume (atomic if possible). */ |