summaryrefslogtreecommitdiffstats
path: root/Source/CTest
diff options
context:
space:
mode:
authorVitaly Stakhovsky <vvs31415@gitlab.org>2020-03-10 14:00:00 (GMT)
committerVitaly Stakhovsky <vvs31415@gitlab.org>2020-03-10 14:55:09 (GMT)
commita6cd48ac414238f922999e9ea457f1bc86c35163 (patch)
treedfd2d3958de911985f7f8051028def90bf32b154 /Source/CTest
parentc06e0356017beef41cd2bb57a6cebfb242a9128e (diff)
downloadCMake-a6cd48ac414238f922999e9ea457f1bc86c35163.zip
CMake-a6cd48ac414238f922999e9ea457f1bc86c35163.tar.gz
CMake-a6cd48ac414238f922999e9ea457f1bc86c35163.tar.bz2
Source: use std::string overloads
Diffstat (limited to 'Source/CTest')
-rw-r--r--Source/CTest/cmCTestVC.cxx2
-rw-r--r--Source/CTest/cmCTestVC.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/Source/CTest/cmCTestVC.cxx b/Source/CTest/cmCTestVC.cxx
index 6026c69..452d714 100644
--- a/Source/CTest/cmCTestVC.cxx
+++ b/Source/CTest/cmCTestVC.cxx
@@ -38,7 +38,7 @@ void cmCTestVC::SetSourceDirectory(std::string const& dir)
this->SourceDirectory = dir;
}
-bool cmCTestVC::InitialCheckout(const char* command)
+bool cmCTestVC::InitialCheckout(const std::string& command)
{
cmCTestLog(this->CTest, HANDLER_OUTPUT,
" First perform the initial checkout: " << command << "\n");
diff --git a/Source/CTest/cmCTestVC.h b/Source/CTest/cmCTestVC.h
index 2a4765d..3037e01 100644
--- a/Source/CTest/cmCTestVC.h
+++ b/Source/CTest/cmCTestVC.h
@@ -36,7 +36,7 @@ public:
std::string GetNightlyTime();
/** Prepare the work tree. */
- bool InitialCheckout(const char* command);
+ bool InitialCheckout(const std::string& command);
/** Perform cleanup operations on the work tree. */
void Cleanup();