summaryrefslogtreecommitdiff
path: root/src/util_security.h
diff options
context:
space:
mode:
authorNils Maier <maierman@web.de>2016-07-31 02:18:43 +0200
committerNils Maier <maierman@web.de>2016-08-29 16:52:20 +0200
commit366e2e8f795e82e2c8472bcf1cd0a892550789a9 (patch)
treee00f9d25494c412b04234cda11caf79bfc73fcbf /src/util_security.h
parent08f4b5e4f41b343753d440f32ccc213c40f3726b (diff)
Use default where possible
Diffstat (limited to 'src/util_security.h')
-rw-r--r--src/util_security.h11
1 files changed, 2 insertions, 9 deletions
diff --git a/src/util_security.h b/src/util_security.h
index 120e4d96..2f37756b 100644
--- a/src/util_security.h
+++ b/src/util_security.h
@@ -90,16 +90,9 @@ public:
{
}
- HMACResult(const HMACResult& other) : result_(other.result_), len_(other.len_)
- {
- }
+ HMACResult(const HMACResult& other) = default;
- HMACResult& operator=(const HMACResult& other)
- {
- result_ = other.result_;
- len_ = other.len_;
- return *this;
- }
+ HMACResult& operator=(const HMACResult& other) = default;
bool operator==(const HMACResult& other) const
{