From fbef72e11c483fae16c32480cf84253a56d0ee25 Mon Sep 17 00:00:00 2001 From: Tomasz Frydrych Date: Sun, 2 Apr 2017 22:24:31 +0200 Subject: Content: * fixes for deprecated constructions in c++11 and later (explicit rule of 3/5 or implicit rule of 0 and other violations) * `default` specifier instead of `{}` in some places(probably all) * removal of unreachable code (for example `return` after `throw`) * removal of compilation unit only visible, but not used functions * fix for `throw()` specifier - used instead `BOTAN_NOEXCEPT` * removed not needed semicolons --- src/lib/pk_pad/eme_raw/eme_raw.h | 2 +- src/lib/pk_pad/emsa.cpp | 2 -- src/lib/pk_pad/emsa.h | 2 +- 3 files changed, 2 insertions(+), 4 deletions(-) (limited to 'src/lib/pk_pad') diff --git a/src/lib/pk_pad/eme_raw/eme_raw.h b/src/lib/pk_pad/eme_raw/eme_raw.h index ec698f759..50b9b6703 100644 --- a/src/lib/pk_pad/eme_raw/eme_raw.h +++ b/src/lib/pk_pad/eme_raw/eme_raw.h @@ -16,7 +16,7 @@ class BOTAN_DLL EME_Raw final : public EME public: size_t maximum_input_size(size_t i) const override; - EME_Raw() {} + EME_Raw() = default; private: secure_vector pad(const uint8_t[], size_t, size_t, RandomNumberGenerator&) const override; diff --git a/src/lib/pk_pad/emsa.cpp b/src/lib/pk_pad/emsa.cpp index 3851f85a7..94274916e 100644 --- a/src/lib/pk_pad/emsa.cpp +++ b/src/lib/pk_pad/emsa.cpp @@ -33,8 +33,6 @@ namespace Botan { -EMSA::~EMSA() {} - EMSA* get_emsa(const std::string& algo_spec) { SCAN_Name req(algo_spec); diff --git a/src/lib/pk_pad/emsa.h b/src/lib/pk_pad/emsa.h index 4b932fd78..437f84d89 100644 --- a/src/lib/pk_pad/emsa.h +++ b/src/lib/pk_pad/emsa.h @@ -55,7 +55,7 @@ class BOTAN_DLL EMSA const secure_vector& raw, size_t key_bits) = 0; - virtual ~EMSA(); + virtual ~EMSA() = default; /** * @return a new object representing the same encoding method as *this -- cgit v1.2.3