summaryrefslogtreecommitdiffstats
path: root/Source/cmGeneratedFileStream.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2004-11-03 12:51:51 (GMT)
committerBrad King <brad.king@kitware.com>2004-11-03 12:51:51 (GMT)
commita5ae290a5bdacf492f31928adb271b85d1d6c4b2 (patch)
treee7449908786332210ad77275356dfc4a711c5cc5 /Source/cmGeneratedFileStream.cxx
parente34207c1f0493c002da8c74897b81a72ef3ef2d4 (diff)
downloadCMake-a5ae290a5bdacf492f31928adb271b85d1d6c4b2.zip
CMake-a5ae290a5bdacf492f31928adb271b85d1d6c4b2.tar.gz
CMake-a5ae290a5bdacf492f31928adb271b85d1d6c4b2.tar.bz2
STYLE: Adjusted signature of cmGeneratedFileStream to make copy-if-different more explicity.
Diffstat (limited to 'Source/cmGeneratedFileStream.cxx')
-rw-r--r--Source/cmGeneratedFileStream.cxx17
1 files changed, 10 insertions, 7 deletions
diff --git a/Source/cmGeneratedFileStream.cxx b/Source/cmGeneratedFileStream.cxx
index 1e470c8..254b6bf 100644
--- a/Source/cmGeneratedFileStream.cxx
+++ b/Source/cmGeneratedFileStream.cxx
@@ -27,10 +27,8 @@
#endif
//----------------------------------------------------------------------------
-cmGeneratedFileStream::cmGeneratedFileStream(const char* name,
- bool copy_if_different,
- bool quiet):
- cmGeneratedFileStreamBase(name, copy_if_different),
+cmGeneratedFileStream::cmGeneratedFileStream(const char* name, bool quiet):
+ cmGeneratedFileStreamBase(name),
Stream(m_TempName.c_str())
{
// Check if the file opened.
@@ -53,11 +51,16 @@ cmGeneratedFileStream::~cmGeneratedFileStream()
}
//----------------------------------------------------------------------------
-cmGeneratedFileStreamBase::cmGeneratedFileStreamBase(const char* name,
- bool copy_if_different):
+void cmGeneratedFileStream::SetCopyIfDifferent(bool copy_if_different)
+{
+ m_CopyIfDifferent = copy_if_different;
+}
+
+//----------------------------------------------------------------------------
+cmGeneratedFileStreamBase::cmGeneratedFileStreamBase(const char* name):
m_Name(name),
m_TempName(name),
- m_CopyIfDifferent(copy_if_different),
+ m_CopyIfDifferent(false),
m_Okay(false)
{
// Create the name of the temporary file.