diff options
author | Brad King <brad.king@kitware.com> | 2011-11-16 16:32:01 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2011-11-16 16:32:01 (GMT) |
commit | 6495b595c4953ce29e66ff4919d69a74300c3532 (patch) | |
tree | 87b81254b64ff82e6675e6c99ad9a6fd4dbc63ed /Source/cmCryptoHash.h | |
parent | 8302608a744c3a4df3495f8db88784fb3f04660f (diff) | |
download | CMake-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.h | 1 |
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); |