aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJack Lloyd <[email protected]>2017-10-19 15:12:35 -0400
committerJack Lloyd <[email protected]>2017-10-19 15:12:35 -0400
commit843a982c3a019e18975aef0277af44a3731f8caa (patch)
treed30199bc21a76eecb558a39027d61d3a59cbe91e /src
parent9be977646f9373ff596e8fdd5ebd73f3281cde49 (diff)
Another attempt at silencing MSVC warning
Diffstat (limited to 'src')
-rw-r--r--src/lib/utils/exceptn.cpp4
-rw-r--r--src/lib/utils/exceptn.h4
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) {}
};
/**