summaryrefslogtreecommitdiffstats
path: root/Source/cmCryptoHash.h
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2011-11-16 16:32:01 (GMT)
committerBrad King <brad.king@kitware.com>2011-11-16 16:32:01 (GMT)
commit6495b595c4953ce29e66ff4919d69a74300c3532 (patch)
tree87b81254b64ff82e6675e6c99ad9a6fd4dbc63ed /Source/cmCryptoHash.h
parent8302608a744c3a4df3495f8db88784fb3f04660f (diff)
downloadCMake-6495b595c4953ce29e66ff4919d69a74300c3532.zip
CMake-6495b595c4953ce29e66ff4919d69a74300c3532.tar.gz
CMake-6495b595c4953ce29e66ff4919d69a74300c3532.tar.bz2
cmCryptoHash: Add virtual destructor
Instances of this class are always subclasses. Use a virtual destructor to ensure the subclasses cleanup correctly.
Diffstat (limited to 'Source/cmCryptoHash.h')
-rw-r--r--Source/cmCryptoHash.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/Source/cmCryptoHash.h b/Source/cmCryptoHash.h
index 0a33365..1bea9ab 100644
--- a/Source/cmCryptoHash.h
+++ b/Source/cmCryptoHash.h
@@ -19,6 +19,7 @@
class cmCryptoHash
{
public:
+ virtual ~cmCryptoHash() {}
static cmsys::auto_ptr<cmCryptoHash> New(const char* algo);
std::string HashString(const char* input);
std::string HashFile(const char* file);