diff options
| author | Nils Maier <maierman@web.de> | 2016-07-31 02:18:43 +0200 |
|---|---|---|
| committer | Nils Maier <maierman@web.de> | 2016-08-29 16:52:20 +0200 |
| commit | 366e2e8f795e82e2c8472bcf1cd0a892550789a9 (patch) | |
| tree | e00f9d25494c412b04234cda11caf79bfc73fcbf /src/util_security.h | |
| parent | 08f4b5e4f41b343753d440f32ccc213c40f3726b (diff) | |
Use default where possible
Diffstat (limited to 'src/util_security.h')
| -rw-r--r-- | src/util_security.h | 11 |
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 { |
