From 1a1c171201e6b2ac09bd2ccb89a41010f5a615ad Mon Sep 17 00:00:00 2001 From: Jack Lloyd Date: Sun, 17 Jan 2016 09:57:08 -0500 Subject: Make Entropy_Sources and Entropy_Accumulator final. Remove bogus virtual destructor on Entropy_Accumulator (has no virtuals) --- src/lib/entropy/entropy_src.h | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'src/lib') 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 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(); -- cgit v1.2.3