summaryrefslogtreecommitdiffstats
path: root/testSystemTools.cxx
diff options
context:
space:
mode:
authorKWSys Robot <kwrobot@kitware.com>2014-08-04 12:59:12 (GMT)
committerBrad King <brad.king@kitware.com>2014-08-04 14:16:30 (GMT)
commit158c6d1cffe863fde284d4e5eeeb8129d40ce0e9 (patch)
treecfcd285d4d397ad9570f5ee25d3139b89cfa190c /testSystemTools.cxx
parentd4d1b7f7d1d6592f12a6692dfb8068aa495bd454 (diff)
downloadCMake-158c6d1cffe863fde284d4e5eeeb8129d40ce0e9.zip
CMake-158c6d1cffe863fde284d4e5eeeb8129d40ce0e9.tar.gz
CMake-158c6d1cffe863fde284d4e5eeeb8129d40ce0e9.tar.bz2
KWSys 2014-08-04 (e787837a)
Extract upstream KWSys using the following shell commands. $ git archive --prefix=upstream-kwsys/ e787837a | tar x $ git shortlog --no-merges --abbrev=8 --format='%h %s' 65b36ede..e787837a Ben Boeckel (4): 9927862c SystemTools: more string replacements b3d598b0 strings: remove unnecessary c_str calls ffe94132 SystemTools: use char instead of const char* f29fec7c Directory: accept strings in methods Rashad M (1): e787837a SharedForward: Cast away const to call execvp on MinGW 64-bit Change-Id: I96437b332971670cfcd953717c5563e9ba0f2b99
Diffstat (limited to 'testSystemTools.cxx')
-rw-r--r--testSystemTools.cxx12
1 files changed, 6 insertions, 6 deletions
diff --git a/testSystemTools.cxx b/testSystemTools.cxx
index 8b21081..15123eb 100644
--- a/testSystemTools.cxx
+++ b/testSystemTools.cxx
@@ -132,7 +132,7 @@ static bool CheckFileOperations()
res = false;
}
- if (!kwsys::SystemTools::MakeDirectory(testNewDir.c_str()))
+ if (!kwsys::SystemTools::MakeDirectory(testNewDir))
{
kwsys_ios::cerr
<< "Problem with MakeDirectory for: "
@@ -148,7 +148,7 @@ static bool CheckFileOperations()
res = false;
}
- if (!kwsys::SystemTools::RemoveFile(testNewFile.c_str()))
+ if (!kwsys::SystemTools::RemoveFile(testNewFile))
{
kwsys_ios::cerr
<< "Problem with RemoveFile: "
@@ -157,7 +157,7 @@ static bool CheckFileOperations()
}
kwsys::SystemTools::Touch(testNewFile.c_str(), true);
- if (!kwsys::SystemTools::RemoveADirectory(testNewDir.c_str()))
+ if (!kwsys::SystemTools::RemoveADirectory(testNewDir))
{
kwsys_ios::cerr
<< "Problem with RemoveADirectory for: "
@@ -183,7 +183,7 @@ static bool CheckFileOperations()
"012345678901234567890123456789012345678901234567890123456789"
"0123456789.txt");
- if (!kwsys::SystemTools::MakeDirectory(testNewLongDir.c_str()))
+ if (!kwsys::SystemTools::MakeDirectory(testNewLongDir))
{
kwsys_ios::cerr
<< "Problem with MakeDirectory for: "
@@ -199,7 +199,7 @@ static bool CheckFileOperations()
res = false;
}
- if (!kwsys::SystemTools::RemoveFile(testNewLongFile.c_str()))
+ if (!kwsys::SystemTools::RemoveFile(testNewLongFile))
{
kwsys_ios::cerr
<< "Problem with RemoveFile: "
@@ -208,7 +208,7 @@ static bool CheckFileOperations()
}
kwsys::SystemTools::Touch(testNewLongFile.c_str(), true);
- if (!kwsys::SystemTools::RemoveADirectory(testNewLongDir.c_str()))
+ if (!kwsys::SystemTools::RemoveADirectory(testNewLongDir))
{
kwsys_ios::cerr
<< "Problem with RemoveADirectory for: "