aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/entropy/entropy_src.h
diff options
context:
space:
mode:
authorJack Lloyd <[email protected]>2017-10-03 09:57:04 -0400
committerJack Lloyd <[email protected]>2017-10-03 09:57:04 -0400
commit26517eb98af4c3bb1faf38653ab55ae0956578eb (patch)
tree61ebd8ee9568369a4f2e6ff1806d47213f20032d /src/lib/entropy/entropy_src.h
parent698f78182485587b6aa7773a43beac9033064e89 (diff)
Avoid empty methods, use =default or add a comment
Sonar
Diffstat (limited to 'src/lib/entropy/entropy_src.h')
-rw-r--r--src/lib/entropy/entropy_src.h8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/lib/entropy/entropy_src.h b/src/lib/entropy/entropy_src.h
index babdd20dd..56e5bd53e 100644
--- a/src/lib/entropy/entropy_src.h
+++ b/src/lib/entropy/entropy_src.h
@@ -45,14 +45,12 @@ class BOTAN_PUBLIC_API(2,0) Entropy_Source
*/
virtual size_t poll(RandomNumberGenerator& rng) = 0;
+ Entropy_Source() = default;
Entropy_Source(const Entropy_Source& other) = delete;
Entropy_Source(Entropy_Source&& other) = delete;
Entropy_Source& operator=(const Entropy_Source& other) = delete;
- virtual ~Entropy_Source() {}
-
- protected:
- Entropy_Source() {}
+ virtual ~Entropy_Source() = default;
};
class BOTAN_PUBLIC_API(2,0) Entropy_Sources final
@@ -73,7 +71,7 @@ class BOTAN_PUBLIC_API(2,0) Entropy_Sources final
*/
size_t poll_just(RandomNumberGenerator& rng, const std::string& src);
- Entropy_Sources() {}
+ Entropy_Sources() = default;
explicit Entropy_Sources(const std::vector<std::string>& sources);
Entropy_Sources(const Entropy_Sources& other) = delete;