summaryrefslogtreecommitdiffstats
path: root/Source/cmMakefile.cxx
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2001-08-23 21:40:07 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2001-08-23 21:40:07 (GMT)
commita4f40c31f1e160ab34d90c1a5e9ed5ab6cc1de59 (patch)
tree554853021dba4b552bb22235b2f9a15a662fc989 /Source/cmMakefile.cxx
parent852be8a520a8a03268b499642c5257675b9ad7f2 (diff)
downloadCMake-a4f40c31f1e160ab34d90c1a5e9ed5ab6cc1de59.zip
CMake-a4f40c31f1e160ab34d90c1a5e9ed5ab6cc1de59.tar.gz
CMake-a4f40c31f1e160ab34d90c1a5e9ed5ab6cc1de59.tar.bz2
ENH: add dump documentation test
Diffstat (limited to 'Source/cmMakefile.cxx')
-rw-r--r--Source/cmMakefile.cxx9
1 files changed, 1 insertions, 8 deletions
diff --git a/Source/cmMakefile.cxx b/Source/cmMakefile.cxx
index 9dd92e8..ee27f58 100644
--- a/Source/cmMakefile.cxx
+++ b/Source/cmMakefile.cxx
@@ -797,16 +797,9 @@ const char* cmMakefile::GetDefinition(const char* name)
return cmCacheManager::GetInstance()->GetCacheValue(name);
}
-int cmMakefile::DumpDocumentationToFile(const char *fileName)
+int cmMakefile::DumpDocumentationToFile(std::ostream& f)
{
// Open the supplied filename
- std::ofstream f;
- f.open(fileName, std::ios::out);
-
- if ( f.fail() )
- {
- return 0;
- }
// Loop over all registered commands and print out documentation
const char *name;