Prefer std::ostream& over derivatives as parameters

This commit is contained in:
Daniel Pfeifer
2016-06-08 22:29:15 +02:00
parent f9cc43ea37
commit 9f25fc4dbb
6 changed files with 13 additions and 14 deletions
+2 -2
View File
@@ -45,7 +45,7 @@ void cmCTestBatchTestHandler::WriteBatchScript()
fout.close();
}
void cmCTestBatchTestHandler::WriteSrunArgs(int test, cmsys::ofstream& fout)
void cmCTestBatchTestHandler::WriteSrunArgs(int test, std::ostream& fout)
{
cmCTestTestHandler::cmCTestTestProperties* properties =
this->Properties[test];
@@ -73,7 +73,7 @@ void cmCTestBatchTestHandler::WriteSrunArgs(int test, cmsys::ofstream& fout)
}
}
void cmCTestBatchTestHandler::WriteTestCommand(int test, cmsys::ofstream& fout)
void cmCTestBatchTestHandler::WriteTestCommand(int test, std::ostream& fout)
{
std::vector<std::string> args = this->Properties[test]->Args;
std::vector<std::string> processArgs;
+2 -2
View File
@@ -33,8 +33,8 @@ public:
protected:
void WriteBatchScript();
void WriteSrunArgs(int test, cmsys::ofstream& fout);
void WriteTestCommand(int test, cmsys::ofstream& fout);
void WriteSrunArgs(int test, std::ostream& fout);
void WriteTestCommand(int test, std::ostream& fout);
void SubmitBatchScript();