summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndy Cedilnik <andy.cedilnik@kitware.com>2005-05-27 20:17:38 (GMT)
committerAndy Cedilnik <andy.cedilnik@kitware.com>2005-05-27 20:17:38 (GMT)
commitc593bfc7d23853f48d8f17b9be224358ed79867b (patch)
treecf1ed7812cb19dac6a977fd02a0edc995a339d64
parent6e2e4eb104fcb5b97635d1d3839cca855bf6497d (diff)
downloadCMake-c593bfc7d23853f48d8f17b9be224358ed79867b.zip
CMake-c593bfc7d23853f48d8f17b9be224358ed79867b.tar.gz
CMake-c593bfc7d23853f48d8f17b9be224358ed79867b.tar.bz2
ENH: Use generated file stream for files
-rw-r--r--Source/CTest/cmCTestScriptHandler.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/CTest/cmCTestScriptHandler.cxx b/Source/CTest/cmCTestScriptHandler.cxx
index 433da14..1be5907 100644
--- a/Source/CTest/cmCTestScriptHandler.cxx
+++ b/Source/CTest/cmCTestScriptHandler.cxx
@@ -23,6 +23,7 @@
#include "cmMakefile.h"
#include "cmLocalGenerator.h"
#include "cmGlobalGenerator.h"
+#include "cmGeneratedFileStream.h"
//#include <cmsys/RegularExpression.hxx>
#include <cmsys/Process.h>
@@ -115,7 +116,6 @@ cmCTestScriptHandler::~cmCTestScriptHandler()
{
delete m_CMake;
}
- m_CMake = 0;
}
@@ -642,7 +642,7 @@ int cmCTestScriptHandler::RunConfigurationDashboard()
{
std::string cacheFile = m_BinaryDir;
cacheFile += "/CMakeCache.txt";
- std::ofstream fout(cacheFile.c_str());
+ cmGeneratedFileStream fout(cacheFile.c_str());
if(!fout)
{
this->RestoreBackupDirectories();
@@ -690,7 +690,7 @@ int cmCTestScriptHandler::RunConfigurationDashboard()
std::cerr << "Write CMake output to file: " << cmakeOutputFile.c_str()
<< std::endl;
}
- std::ofstream fout(cmakeOutputFile.c_str());
+ cmGeneratedFileStream fout(cmakeOutputFile.c_str());
if ( fout )
{
fout << output.c_str();