summaryrefslogtreecommitdiffstats
path: root/Source/cmGlobalVisualStudioGenerator.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/cmGlobalVisualStudioGenerator.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/cmGlobalVisualStudioGenerator.cxx')
-rw-r--r--Source/cmGlobalVisualStudioGenerator.cxx5
1 files changed, 2 insertions, 3 deletions
diff --git a/Source/cmGlobalVisualStudioGenerator.cxx b/Source/cmGlobalVisualStudioGenerator.cxx
index e3dd2f9..77be592 100644
--- a/Source/cmGlobalVisualStudioGenerator.cxx
+++ b/Source/cmGlobalVisualStudioGenerator.cxx
@@ -262,9 +262,8 @@ void cmGlobalVisualStudioGenerator::ConfigureCMakeVisualStudioMacros()
// purposes but newer versions distributed with CMake will replace
// older versions in user directories.
int res;
- if (!cmSystemTools::FileTimeCompare(src.c_str(), dst.c_str(), &res) ||
- res > 0) {
- if (!cmSystemTools::CopyFileAlways(src.c_str(), dst.c_str())) {
+ if (!cmSystemTools::FileTimeCompare(src, dst, &res) || res > 0) {
+ if (!cmSystemTools::CopyFileAlways(src, dst)) {
std::ostringstream oss;
oss << "Could not copy from: " << src << std::endl;
oss << " to: " << dst << std::endl;