summaryrefslogtreecommitdiffstats
path: root/Source/CTest/cmProcess.h
diff options
context:
space:
mode:
authorGregor Jasny <gjasny@googlemail.com>2019-03-05 18:20:29 (GMT)
committerGregor Jasny <gjasny@googlemail.com>2019-03-05 18:20:29 (GMT)
commit1166aa5ce784a07ca2ce7d750f11ed174562bdc6 (patch)
tree35dd486d2f8a6ea1a8f023bde8f548a14eb0432b /Source/CTest/cmProcess.h
parent451d3907fdb0eea70f1107712324300d786433d7 (diff)
downloadCMake-1166aa5ce784a07ca2ce7d750f11ed174562bdc6.zip
CMake-1166aa5ce784a07ca2ce7d750f11ed174562bdc6.tar.gz
CMake-1166aa5ce784a07ca2ce7d750f11ed174562bdc6.tar.bz2
ctest: refactor some code
Diffstat (limited to 'Source/CTest/cmProcess.h')
-rw-r--r--Source/CTest/cmProcess.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/Source/CTest/cmProcess.h b/Source/CTest/cmProcess.h
index e5ca17f..a0a4b6b 100644
--- a/Source/CTest/cmProcess.h
+++ b/Source/CTest/cmProcess.h
@@ -28,10 +28,9 @@ class cmProcess
public:
explicit cmProcess(cmCTestRunTest& runner);
~cmProcess();
- const char* GetCommand() { return this->Command.c_str(); }
- void SetCommand(const char* command);
+ void SetCommand(std::string const& command);
void SetCommandArguments(std::vector<std::string> const& arg);
- void SetWorkingDirectory(const char* dir) { this->WorkingDirectory = dir; }
+ void SetWorkingDirectory(std::string const& dir);
void SetTimeout(cmDuration t) { this->Timeout = t; }
void ChangeTimeout(cmDuration t);
void ResetStartTime();