diff options
author | Jack Lloyd <[email protected]> | 2016-01-17 09:57:08 -0500 |
---|---|---|
committer | Jack Lloyd <[email protected]> | 2016-01-17 09:57:08 -0500 |
commit | 1a1c171201e6b2ac09bd2ccb89a41010f5a615ad (patch) | |
tree | 1b61fc511d055883482043ab5998e35bf0beda2d /src | |
parent | a146ea9fc82e918a2c4cafbe0fc08f90bfbc0b2b (diff) |
Make Entropy_Sources and Entropy_Accumulator final.
Remove bogus virtual destructor on Entropy_Accumulator (has no virtuals)
Diffstat (limited to 'src')
-rw-r--r-- | src/lib/entropy/entropy_src.h | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/lib/entropy/entropy_src.h b/src/lib/entropy/entropy_src.h index 0f4c38358..3bcd8c68d 100644 --- a/src/lib/entropy/entropy_src.h +++ b/src/lib/entropy/entropy_src.h @@ -17,7 +17,7 @@ namespace Botan { /** * Class used to accumulate the poll results of EntropySources */ -class BOTAN_DLL Entropy_Accumulator +class BOTAN_DLL Entropy_Accumulator final { public: /** @@ -33,8 +33,6 @@ class BOTAN_DLL Entropy_Accumulator Entropy_Accumulator(std::function<bool (const byte[], size_t, double)> accum) : m_accum_fn(accum) {} - virtual ~Entropy_Accumulator() {} - /** * @return if our polling goal has been achieved */ @@ -102,7 +100,7 @@ class BOTAN_DLL Entropy_Source virtual ~Entropy_Source() {} }; -class BOTAN_DLL Entropy_Sources +class BOTAN_DLL Entropy_Sources final { public: static Entropy_Sources& global_sources(); |