cmCryptoHash: Add virtual destructor
Instances of this class are always subclasses. Use a virtual destructor to ensure the subclasses cleanup correctly.
This commit is contained in:
parent
8302608a74
commit
6495b595c4
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue