summaryrefslogtreecommitdiffstats
path: root/Source/cmSourceFile.h
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2005-02-18 21:19:09 (GMT)
committerBrad King <brad.king@kitware.com>2005-02-18 21:19:09 (GMT)
commitffb2c0c0e5ff92a1611dba3de3fc11ce3f3cbe63 (patch)
treef16a889c6f1cb968680d72c37e7127b5faaa7930 /Source/cmSourceFile.h
parent04b5d1613c6082558bb6dca4b831747399409035 (diff)
downloadCMake-ffb2c0c0e5ff92a1611dba3de3fc11ce3f3cbe63.zip
CMake-ffb2c0c0e5ff92a1611dba3de3fc11ce3f3cbe63.tar.gz
CMake-ffb2c0c0e5ff92a1611dba3de3fc11ce3f3cbe63.tar.bz2
BUG: cmSourceFile instances should delete their own custom commands when a new one is set.
Diffstat (limited to 'Source/cmSourceFile.h')
-rw-r--r--Source/cmSourceFile.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/Source/cmSourceFile.h b/Source/cmSourceFile.h
index 7607fe2..ea78397 100644
--- a/Source/cmSourceFile.h
+++ b/Source/cmSourceFile.h
@@ -38,7 +38,7 @@ public:
}
~cmSourceFile()
{
- if (m_CustomCommand) { delete m_CustomCommand; }
+ this->SetCustomCommand(0);
}
/**
@@ -56,8 +56,7 @@ public:
const cmCustomCommand *GetCustomCommand() const
{return m_CustomCommand;}
cmCustomCommand *GetCustomCommand() {return m_CustomCommand;}
- void SetCustomCommand(cmCustomCommand *cc)
- { m_CustomCommand = cc;}
+ void SetCustomCommand(cmCustomCommand *cc);
/**
* Set the name of the file, given the directory the file should be in. IN