summaryrefslogtreecommitdiff
path: root/Source/cmVTKMakeInstantiatorCommand.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2004-11-03 07:51:51 -0500
committerBrad King <brad.king@kitware.com>2004-11-03 07:51:51 -0500
commita5ae290a5bdacf492f31928adb271b85d1d6c4b2 (patch)
treee7449908786332210ad77275356dfc4a711c5cc5 /Source/cmVTKMakeInstantiatorCommand.cxx
parente34207c1f0493c002da8c74897b81a72ef3ef2d4 (diff)
downloadcmake-a5ae290a5bdacf492f31928adb271b85d1d6c4b2.tar.gz
STYLE: Adjusted signature of cmGeneratedFileStream to make copy-if-different more explicity.
Diffstat (limited to 'Source/cmVTKMakeInstantiatorCommand.cxx')
-rw-r--r--Source/cmVTKMakeInstantiatorCommand.cxx9
1 files changed, 6 insertions, 3 deletions
diff --git a/Source/cmVTKMakeInstantiatorCommand.cxx b/Source/cmVTKMakeInstantiatorCommand.cxx
index 6f2239bc2e..5d96b80904 100644
--- a/Source/cmVTKMakeInstantiatorCommand.cxx
+++ b/Source/cmVTKMakeInstantiatorCommand.cxx
@@ -127,7 +127,8 @@ cmVTKMakeInstantiatorCommand
std::string fullName = headerPath+"/"+fileName;
// Generate the output file with copy-if-different.
- cmGeneratedFileStream fout(fullName.c_str(), true);
+ cmGeneratedFileStream fout(fullName.c_str());
+ fout.SetCopyIfDifferent(true);
// Actually generate the code in the file.
if(!oldVersion)
@@ -147,7 +148,8 @@ cmVTKMakeInstantiatorCommand
// Generate the output file with copy-if-different.
{
- cmGeneratedFileStream fout(fullName.c_str(), true);
+ cmGeneratedFileStream fout(fullName.c_str());
+ fout.SetCopyIfDifferent(true);
// Actually generate the code in the file.
if(!oldVersion)
@@ -188,7 +190,8 @@ cmVTKMakeInstantiatorCommand
// Generate the output file with copy-if-different.
{
- cmGeneratedFileStream fout(fullName.c_str(), true);
+ cmGeneratedFileStream fout(fullName.c_str());
+ fout.SetCopyIfDifferent(true);
size_t thisBlockSize =
(block < numFullBlocks)? groupSize:lastBlockSize;