diff options
-rw-r--r-- | src/lib/utils/exceptn.cpp | 4 | ||||
-rw-r--r-- | src/lib/utils/exceptn.h | 4 |
2 files changed, 2 insertions, 6 deletions
diff --git a/src/lib/utils/exceptn.cpp b/src/lib/utils/exceptn.cpp index 08fbd40e1..caae15a33 100644 --- a/src/lib/utils/exceptn.cpp +++ b/src/lib/utils/exceptn.cpp @@ -48,10 +48,6 @@ PRNG_Unseeded::PRNG_Unseeded(const std::string& algo) : Invalid_State("PRNG not seeded: " + algo) {} -Policy_Violation::Policy_Violation(const std::string& err) : - Invalid_State("Policy violation: " + err) - {} - Algorithm_Not_Found::Algorithm_Not_Found(const std::string& name) : Lookup_Error("Could not find any algorithm named \"" + name + "\"") {} diff --git a/src/lib/utils/exceptn.h b/src/lib/utils/exceptn.h index 89b047e1a..4349290e9 100644 --- a/src/lib/utils/exceptn.h +++ b/src/lib/utils/exceptn.h @@ -117,8 +117,8 @@ class BOTAN_PUBLIC_API(2,0) PRNG_Unseeded final : public Invalid_State class BOTAN_DEPRECATED("deprecated") BOTAN_PUBLIC_API(2,0) Policy_Violation final : public Invalid_State { public: - explicit Policy_Violation(const std::string& err); - ~Policy_Violation() { /* avoid strange MSVC warning */ } + explicit Policy_Violation(const std::string& err) : + Invalid_State("Policy violation: " + err) {} }; /** |