diff options
author | Brad King <brad.king@kitware.com> | 2018-06-14 15:26:37 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2018-06-14 15:26:37 (GMT) |
commit | 4eae1c081693187925b47df251038e35e43bb014 (patch) | |
tree | 301123b98ad9efdc27ee39c90bad79d5c5c2711e /Source/kwsys/testSystemTools.cxx | |
parent | 65ee7d1cc399c5cac25d97827f32e8c5ba60b419 (diff) | |
parent | f3cd44263ed4640b7092e0d280e153894a38fc9e (diff) | |
download | CMake-4eae1c081693187925b47df251038e35e43bb014.zip CMake-4eae1c081693187925b47df251038e35e43bb014.tar.gz CMake-4eae1c081693187925b47df251038e35e43bb014.tar.bz2 |
Merge branch 'upstream-KWSys' into update-kwsys
* upstream-KWSys:
KWSys 2018-06-14 (2b0ca1d8)
Diffstat (limited to 'Source/kwsys/testSystemTools.cxx')
-rw-r--r-- | Source/kwsys/testSystemTools.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/kwsys/testSystemTools.cxx b/Source/kwsys/testSystemTools.cxx index e6f9701..0477d59 100644 --- a/Source/kwsys/testSystemTools.cxx +++ b/Source/kwsys/testSystemTools.cxx @@ -206,7 +206,7 @@ static bool CheckFileOperations() res = false; } - if (!kwsys::SystemTools::Touch(testNewFile.c_str(), true)) { + if (!kwsys::SystemTools::Touch(testNewFile, true)) { std::cerr << "Problem with Touch for: " << testNewFile << std::endl; res = false; } @@ -415,7 +415,7 @@ static bool CheckFileOperations() res = false; } - kwsys::SystemTools::Touch(testNewFile.c_str(), true); + kwsys::SystemTools::Touch(testNewFile, true); if (!kwsys::SystemTools::RemoveADirectory(testNewDir)) { std::cerr << "Problem with RemoveADirectory for: " << testNewDir << std::endl; @@ -806,7 +806,7 @@ static bool CheckFind() const std::string testFindFile(TEST_SYSTEMTOOLS_BINARY_DIR "/" + testFindFileName); - if (!kwsys::SystemTools::Touch(testFindFile.c_str(), true)) { + if (!kwsys::SystemTools::Touch(testFindFile, true)) { std::cerr << "Problem with Touch for: " << testFindFile << std::endl; // abort here as the existence of the file only makes the test meaningful return false; |